Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat May 26, 2018 6:52 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Jun 29, 2011 1:19 pm 
Offline
Total Newbie

Joined: Wed Jun 29, 2011 1:03 pm
Posts: 4
I have successfully installed Debian 6.0 on my LinkStation Mini (LS-WSGL/R1) using the excellent guide @ http://buffalo.nas-central.org/wiki/Install_Debian_6.0_(Squeeze)_On_Buffalo_Linkstation_Mini.

I am unclear as to what I need to install (if anything) to regain the stock functionality of the power switch (on, off, auto) and the function button.

Do I need to install and configure the AVR Watch Dog Deamon as described @ http://buffalo.nas-central.org/wiki/AVR_watch-dog_daemon_for_Linkstation?

Using the Debian poweroff shell command does not power down the device so I assume something else has to be installed / done.

Many thanks for any pointers or suggestions.


Top
   
PostPosted: Wed Jun 29, 2011 7:13 pm 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
The AVR watchdog daemon is not for the current LS models.
Search for blstools instead.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
PostPosted: Thu Jun 30, 2011 7:49 pm 
Offline
Total Newbie

Joined: Wed Jun 29, 2011 1:03 pm
Posts: 4
Looks like blstools depends on /proc/buffalo/gpio which is not present in Debian Squeeze.

I've had a quick looked at the kernel source code (Debian, main line and orion), and they all include ls-mini-setup.c file. From what I've seen in kernel-2.6.32-31-debian-lsmini.config this code is compiled in.

I can see the LEDs in /sys/devices/platform/leds-gpio/leds but do not know how to control them.

I appear to be able to turn them off and on using:

echo 0 > /sys/devices/platform/leds-gpio/leds/alarm\:red/brightness
echo 1 > /sys/devices/platform/leds-gpio/leds/alarm\:red/brightness

Likewise I can query the status using cat e.g. cat /sys/devices/platform/leds-gpio/leds/alarm\:red/brightness

However, I cannot locate the switch and function buttons.

Again, any help most appreciated.


Top
   
PostPosted: Sat Jul 02, 2011 1:04 am 
Offline
Total Newbie

Joined: Wed Jun 29, 2011 1:03 pm
Posts: 4
I did a bit more "looking" at the source code, and a lot of googling... it turns out the power switch and the function button are assigned to an IRQ. The event can be monitored using /dev/input/event0.

I used evtest /dev/input/event0 and observed the following for the function button (press/release), followed by the power switch on/off/on/auto/on.
Code:
Input driver version is 1.0.0
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio-keys"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 357 (Option)
  Event type 5 (?)
    Event code 0 (?)
    Event code 1 (?)
Testing ... (interrupt to exit)
Event: time 1309564916.976175, type 1 (Key), code 357 (Option), value 1
Event: time 1309564916.976189, -------------- Report Sync ------------
Event: time 1309564917.836707, type 1 (Key), code 357 (Option), value 0
Event: time 1309564917.836718, -------------- Report Sync ------------
Event: time 1309564922.238240, type 5 (?), code 0 (?), value 0
Event: time 1309564922.238250, -------------- Report Sync ------------
Event: time 1309564925.135831, type 5 (?), code 0 (?), value 1
Event: time 1309564925.135845, -------------- Report Sync ------------
Event: time 1309564927.393791, type 5 (?), code 0 (?), value 0
Event: time 1309564927.393802, -------------- Report Sync ------------
Event: time 1309564927.394098, type 5 (?), code 1 (?), value 1
Event: time 1309564927.394113, -------------- Report Sync ------------
Event: time 1309564930.199408, type 5 (?), code 1 (?), value 0
Event: time 1309564930.199419, -------------- Report Sync ------------
Event: time 1309564930.200548, type 5 (?), code 0 (?), value 1
Event: time 1309564930.200559, -------------- Report Sync ------------

All that remains to do is figure out how to use this in a shell script...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 4 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:
Powered by phpBB® Forum Software © phpBB Limited