It is currently Wed Nov 22, 2017 6:12 pm

All times are UTC - 7 hours [ DST ]

Recent News:



Post new topic Reply to topic  [ 118 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Author Message
PostPosted: Thu Apr 07, 2011 9:36 pm 
Offline
Newbie
Newbie

Joined: Thu Apr 07, 2011 9:22 pm
Posts: 1
Thanks: 0
Thanked: 0 time in 0 post
Just wanted to say thanks for all your hard work. This thread pointed me in the right direction and was able to get a simple activity monitor for my individual HDD leds written. Thanks again.


Top
 Profile  
Thanks  

Attention Guest: Remove this ad by Registering with the MediaSmartServer.net Forums. It's Free!
PostPosted: Wed Jul 06, 2011 10:12 am 
Offline
.5TB storage
.5TB storage

Joined: Wed Apr 27, 2011 9:30 am
Posts: 13
Thanks: 2
Thanked: 0 time in 0 post
I have the ex495 running debian squeeze, and was able to install the mediasmartd, but the leds are in the wrong order. Is there a config somewhere where I can change the order?


Top
 Profile  
Thanks  
PostPosted: Sun Apr 29, 2012 8:21 am 
Offline
Newbie
Newbie

Joined: Sat Jun 12, 2010 4:07 pm
Posts: 5
Thanks: 0
Thanked: 0 time in 0 post
@merelin I installed mediasmartserverd 32 bit deb on my Acer H340 running Ubuntu 10.04. I just upgraded to Ubuntu 12.04, which resulted in a broken system. I had to spend a day to fix (http://ubuntuforums.org/showthread.php?t=1967660) the upgrade. The issue stemmed from your deb package, where the description field contains multiple empty lines. Can you remove them so others don't run into the same issue in the future? Thanks for your contribution.


Top
 Profile  
Thanks  
PostPosted: Mon Apr 30, 2012 1:35 am 
Offline
1TB storage
1TB storage

Joined: Wed Jan 19, 2011 2:19 am
Posts: 25
Thanks: 0
Thanked: 7 times in 5 posts
vinhdizzo wrote:
@merelin I installed mediasmartserverd 32 bit deb on my Acer H340 running Ubuntu 10.04. I just upgraded to Ubuntu 12.04, which resulted in a broken system. I had to spend a day to fix (http://ubuntuforums.org/showthread.php?t=1967660) the upgrade. The issue stemmed from your deb package, where the description field contains multiple empty lines. Can you remove them so others don't run into the same issue in the future? Thanks for your contribution.


Thanks for pointing that! The new versions are attached.


Attachments:
mediasmartserver_0.3-2ubuntu1_amd64.deb.tar.gz [27.5 KiB]
Downloaded 245 times
mediasmartserver_0.3-2ubuntu1_i386.deb.tar.gz [27.04 KiB]
Downloaded 188 times
Top
 Profile  
Thanks  
PostPosted: Thu Jul 26, 2012 1:29 pm 
Offline
Newbie
Newbie

Joined: Thu Jul 26, 2012 1:18 pm
Posts: 5
Thanks: 0
Thanked: 3 times in 2 posts
Hello,

I know it is an old thread, but it helped me a lot.
I have a newer version of the Acer EasyStore, the H342.
It has a different south bridge, ICH9.
I modified the original driver (written by Alexander Georg) to
suit the new southbridge. It means different GPIO addresses.
With this driver I can control the lights of my server.
I have read that somebody was looking for H341 driver, I think this is
good for that too, but I don't have hardware to test.

I have attached the altered source code.
Feel free to use it!

Gyuri


Attachments:
File comment: source code and makefile
h342.tar.gz [4.88 KiB]
Downloaded 188 times
Top
 Profile  
Thanks  
The following user would like to thank tdudus for this post
dg3feh, yakuza
PostPosted: Fri Aug 03, 2012 12:51 pm 
Offline
Newbie
Newbie

Joined: Tue Mar 01, 2011 2:39 pm
Posts: 6
Thanks: 4
Thanked: 0 time in 0 post
Hello!


First of all: Thanx for ur work!

I just get an object file from ur Makefile. Could u please tell me how to use it?

Regards, Holger


Top
 Profile  
Thanks  
PostPosted: Fri Aug 03, 2012 1:36 pm 
Offline
Newbie
Newbie

Joined: Thu Jul 26, 2012 1:18 pm
Posts: 5
Thanks: 0
Thanked: 3 times in 2 posts
Hello Holger!

You can just load the module with insmod.
Code:
insmod /path/to/the/module/leds-h342.ko

Then a few new folders will appear in /sys/class/leds

h342:InfoLedBlue/
h342:InfoLedRed/
h342:PowerLed/
h342:USBLight/

Each has a file named "brightness" and another "blink" along some other.

If you echo 255 or 0 into these files, you can control the on/off and blinking state of the corresponding leds. The brightness value is logically inverted except for PowerLed.
For example:
Code:
root@acerh342# echo 0 > /sys/class/leds/h342\:USBLight/brightness

will turn on the "USB BACKUP" led, and
Code:
root@acerh342# echo 255 > /sys/class/leds/h342\:USBLight/blink

will make it blink.
The backslash (\) is needed to escape the special meaning of the colon(:).

Hope it helps,

Gyuri


Top
 Profile  
Thanks  
PostPosted: Sun Aug 05, 2012 12:51 am 
Offline
Newbie
Newbie

Joined: Tue Mar 01, 2011 2:39 pm
Posts: 6
Thanks: 4
Thanked: 0 time in 0 post
Hello!

Thanx fpr ur replay, but I got the following errormessage:

root@Server-HH:/tmp/h342# insmod /tmp/h342/leds-h342.ko
insmod: error inserting '/tmp/h342/leds-h342.ko': -1 Unknown symbol in module
root@Server-HH:/tmp/h342#


Do u have an idea?

regards, HOlger


Top
 Profile  
Thanks  
PostPosted: Sun Aug 05, 2012 5:54 am 
Offline
Newbie
Newbie

Joined: Thu Jul 26, 2012 1:18 pm
Posts: 5
Thanks: 0
Thanked: 3 times in 2 posts
Could you please copy the output of dmesg | tail? Just after the failed insmod. It tells which symbol is unknown


Top
 Profile  
Thanks  
PostPosted: Mon Aug 06, 2012 2:08 pm 
Offline
Newbie
Newbie

Joined: Tue Mar 01, 2011 2:39 pm
Posts: 6
Thanks: 4
Thanked: 0 time in 0 post
The Messagelog says the follwoing:

Aug 6 22:33:31 Server-HH kernel: [5275006.499927] leds_h342: Unknown symbol led_classdev_unregister (err 0)
Aug 6 22:33:31 Server-HH kernel: [5275006.501367] leds_h342: Unknown symbol led_classdev_register (err 0)

Thx, Holger


Top
 Profile  
Thanks  
PostPosted: Mon Aug 06, 2012 2:51 pm 
Offline
Newbie
Newbie

Joined: Thu Jul 26, 2012 1:18 pm
Posts: 5
Thanks: 0
Thanked: 3 times in 2 posts
I use the 3.2.0-27 kernel (precise pangolin), but if I am right, the previous versions need the led-class module to be explicitly loaded. The missing functions are in that module.
So run:
Code:
sudo modprobe led-class


You can also insert the leds-h342 module with modprobe.
First, it must be in the right directory (/lib/modules/`uname -r`/kernel/drivers/leds) (`uname -r` gives the kernel version).
Second, you must run "depmod -a" to register it's dependencies.
Then modprobe will automatically load all the modules needed by leds-h342, so the only command will be
Code:
sudo modprobe leds-h342

Note that if doing with modprobe, you don't need the .ko extension
because you write the module name instead of the file that contains it.

I hope you will succeed this time!


Top
 Profile  
Thanks  
PostPosted: Mon Aug 06, 2012 3:05 pm 
Offline
Newbie
Newbie

Joined: Tue Mar 01, 2011 2:39 pm
Posts: 6
Thanks: 4
Thanked: 0 time in 0 post
Hello!

The module is loaded and works fine for the leds on the leftside. Is the no support for the four HDD Leds on the right side?

regards, Holger


Top
 Profile  
Thanks  
PostPosted: Thu Aug 09, 2012 6:28 am 
Offline
Newbie
Newbie

Joined: Thu Jul 26, 2012 1:18 pm
Posts: 5
Thanks: 0
Thanked: 3 times in 2 posts
This driver was not supporting those LEDs, they are connected to another chip.
This functionality is supported by the mediasmartserverd program.
That doesn't support H342 as far as I know, I plan to modify that too so it will.


Top
 Profile  
Thanks  
The following user would like to thank tdudus for this post
dg3feh
PostPosted: Tue Aug 21, 2012 12:27 pm 
Offline
.5TB storage
.5TB storage

Joined: Wed Apr 27, 2011 9:30 am
Posts: 13
Thanks: 2
Thanked: 0 time in 0 post
@merelin Can you adjust your .deb package? My led order is off by 1. From bottom to top, sda is being lit on the 2nd bay, sdb is lit on the 3rd bay, sdc is lit on the 4th bay, etc. Hdd bay #1 is not lit at all. Much appreciated if you can shift the numbering down by 1. This is for a debian squeeze install.
thanks! :cheers:


Top
 Profile  
Thanks  
PostPosted: Tue Aug 21, 2012 1:36 pm 
Offline
1TB storage
1TB storage

Joined: Wed Jan 19, 2011 2:19 am
Posts: 25
Thanks: 0
Thanked: 7 times in 5 posts
mugenbb6 wrote:
@merelin Can you adjust your .deb package? My led order is off by 1. From bottom to top, sda is being lit on the 2nd bay, sdb is lit on the 3rd bay, sdc is lit on the 4th bay, etc. Hdd bay #1 is not lit at all. Much appreciated if you can shift the numbering down by 1. This is for a debian squeeze install.
thanks! :cheers:


@mugenbb6 There is no hardcoded numbering actually. I'd suggest that you do the following:

1. Run
Code:
sudo /etc/init.d/mediasmartserver stop

2. Give me the output of
Code:
sudo find /sys/devices/pci0000\:00/*/host*

3. Give me the output of
Code:
sudo find /sys/class/scsi_host/host* | while read d; do echo $d; sudo cat $d/unique_id; done

4. Download mediasmartserverd.tar.gz attached, unpack and run like
Code:
sudo ./mediasmartserverd --activity
Give me the output it produces.

Cheers!


Attachments:
File comment: A debugging version.
mediasmartserverd.tar.gz [30 KiB]
Downloaded 157 times
Top
 Profile  
Thanks  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 118 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group