|
2014-06-04
, 21:48
|
Posts: 432 |
Thanked: 917 times |
Joined on Jun 2011
|
#52
|
|
2014-06-05
, 11:06
|
Posts: 7 |
Thanked: 38 times |
Joined on Jun 2014
|
#53
|
What about that keyboard LEDs ?
#!/bin/sh # there are different modes: run disabled load. I use run for ON and disabled for OFF mode="run" # 0-255 brightness="50" echo $mode > /sys/class/i2c-adapter/i2c-2/2-0032/engine3_mode echo $brightness > /sys/class/i2c-adapter/i2c-2/2-0032/leds/lp5523:kb1/brightness echo $brightness > /sys/class/i2c-adapter/i2c-2/2-0032/leds/lp5523:kb2/brightness echo $brightness > /sys/class/i2c-adapter/i2c-2/2-0032/leds/lp5523:kb3/brightness echo $brightness > /sys/class/i2c-adapter/i2c-2/2-0032/leds/lp5523:kb4/brightness echo $brightness > /sys/class/i2c-adapter/i2c-2/2-0032/leds/lp5523:kb5/brightness echo $brightness > /sys/class/i2c-adapter/i2c-2/2-0032/leds/lp5523:kb6/brightness
|
2014-06-05
, 18:55
|
Posts: 7 |
Thanked: 38 times |
Joined on Jun 2014
|
#54
|
#!/bin/sh # status stat=$(cat /sys/class/power_supply/bq27200-0/status) # time if grep Charging /sys/class/power_supply/bq27200-0/status > /dev/null then time=$(cat /sys/class/power_supply/bq27200-0/time_to_full_now) else time=$(cat /sys/class/power_supply/bq27200-0/time_to_empty_avg) fi # capacity cfd=$(cat /sys/class/power_supply/bq27200-0/charge_full) cn=$(cat /sys/class/power_supply/bq27200-0/charge_now) # voltage vmd=$(cat /sys/class/power_supply/rx51-battery/voltage_max_design) vn=$(cat /sys/class/power_supply/bq27200-0/voltage_now) # temp temp=$(cat /sys/class/power_supply/bq27200-0/temp) # out echo status: $stat if grep Charging /sys/class/power_supply/bq27200-0/status > /dev/null then echo $time | awk '{ printf ("time to full: %.2d:%.2d\n" , ($1/3600%24) , ($1/60%60)) }' else echo $time | awk '{ printf ("time to empty: %.2d:%.2d\n" , ($1/3600%24) , ($1/60%60)) }' fi echo $cn $cfd | awk '{ printf ("capacity: %.1f%%\n" , ($1/$2*100) ) }' echo $vn $vmd | awk '{ printf ("voltage: %.1f%%\n" , ($1/$2*100) ) }' echo $temp | awk '{ print "temp: " $1/10 "°C" }'
|
2014-06-06
, 04:53
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#55
|
I've managed something with keyboard leds.
Here is a simple script:
...
echo 3 > /sys/class/i2c-adapter/i2c-2/2-0032/select_engine
lp5523x 2-0032: firmware request failed
The Following 5 Users Say Thank You to AapoRantalainen For This Useful Post: | ||
|
2014-06-06
, 06:36
|
Posts: 7 |
Thanked: 38 times |
Joined on Jun 2014
|
#56
|
echo 3 > /sys/class/i2c-adapter/i2c-2/2-0032/select_engine
|
2014-06-06
, 12:44
|
Posts: 191 |
Thanked: 415 times |
Joined on Jan 2012
|
#57
|
apt-get install mtd-utils modprobe ubifs ubiattach /dev/ubi_ctrl -m 5 mount -t ubifs ubi0:rootfs /mnt mount /dev/mmcblk0p2 /mnt/home/ mount /dev/mmcblk0p1 /mnt/home/user/MyDocs/
for i in sys dev proc; do mount -o bind /$i /mnt/$i; done chroot /mnt /bin/sh
fuser -k -M -m /mnt/ for i in sys dev proc; do umount /mnt/$i; done umount /mnt/home/user/MyDocs/ umount /mnt/home/ umount /mnt
|
2014-06-06
, 13:29
|
Posts: 191 |
Thanked: 415 times |
Joined on Jan 2012
|
#58
|
setxkbmap -rules evdev -model nokiarx51 -option grp:ctrl_shift_toggle -layout us
|
2014-06-06
, 18:04
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#59
|
Code:apt-get install mtd-utils modprobe ubifs ubiattach /dev/ubi_ctrl -m 5 mount -t ubifs ubi0:rootfs /mnt mount /dev/mmcblk0p2 /mnt/home/ mount /dev/mmcblk0p1 /mnt/home/user/MyDocs/
/dev/mmcblk0p2 on / type ext4 (rw,noatime,data=ordered)
|
2014-06-06
, 18:39
|
Posts: 15 |
Thanked: 11 times |
Joined on Dec 2013
@ Crete,Greece
|
#60
|
For a proper keyboard on X, run the following:
[CODE]
setxkbmap -rules evdev -model nokiarx51 -option grp:ctrl_shift_toggle -layout us
Please post if you know how to properly configure this in e17.
nano /usr/share/applications/keybset.desktop
[Desktop Entry] Name=Keybset Comment=Sets the RX-51 keyboard layout Exec=setxkbmap -rules evdev -model nokiarx51 -option grp:ctrl_shift_toggle -layout us Icon=false NoDisplay=false Terminal=true Type=Application Categories= StartupNotify=true
chmod a+x /usr/share/applications/keybset.desktop
I have installed Xmonad on our little beast and it works suprisingly well, it is fast, stable, low on mem ...
only downside is pretty large ghc as dependency (cca 600 mb) and lack of n900 Alt_l aka Mod1 key,
so I assign it to volume key and it works well.
Is there a way to assign '$ xset dpms force off' to kb_lock?
I found workaround but doesn't involve kb_lock.
Does anyone got audio working?
I've tried alsamixer, but moc doesn't give any response.
Then I tried with jack, in moc you can see that song is at least playing but there is no sound.