ubuntu 11.04 / laptop sony vaio vpcy11S1E: wireless
Posted by perkins on 28 May 2011 in IT | Short Link
- Wireless doesn’t work from the start. Here is the solution, which is that:
gksudo gedit /etc/modprobe.d/acer-wmi options acer-wmi wireless=1 sudo modprobe acer-wmi
- The control buttons for brightness of the display [Fn - F5, F6] do not work. The solution remains the same (i’ve lost the source, from where I did steal this): two files shall be created in /etc/acpi/ directory:
/etc/acpi/sony_brightness_up.sh:#!/bin/bashCONST_ADD=32 #get current value and convert it from hex to decimal BRIGHT_VAL=$((0x$(setpci -s 00:02.0 F4.B))) #increase it BRIGHT_VAL=$(( $BRIGHT_VAL + $CONST_ADD )); if test "$BRIGHT_VAL" -gt 255 ; then BRIGHT_VAL=255 fi #convert in hex HEX_VAL=$(dc -e "$BRIGHT_VAL 16 o p") #set new val #echo $HEX_VAL setpci -s 00:02.0 F4.B=$HEX_VAL
… and /etc/acpi/sony_brightness_down.sh:
#!/bin/sh CONST_ADD=32 #get current value and convert it from hex to decimal BRIGHT_VAL=$((0x$(setpci -s 00:02.0 F4.B))) if test "$BRIGHT_VAL" -le "$CONST_ADD" ; then BRIGHT_VAL=$(( $CONST_ADD + 1 )) fi #decrease it BRIGHT_VAL=$(( $BRIGHT_VAL - $CONST_ADD )); #convert in hex HEX_VAL=$(dc -e "$BRIGHT_VAL 16 o p") #set new val setpci -s 00:02.0 F4.B=$HEX_VAL
… and two files in /etc/acpi/events directory:
/etc/acpi/events/sony-brightness-down:# /etc/acpi/events/sony-volume-down event=sony/hotkey SNC 00000001 00000010 action=/etc/acpi/sony_brightness_down.sh
… and /etc/acpi/events/sony-brightness-up:
b/s/README ~/b/s/e/sony-brightness-up X # /etc/acpi/events/sony-volume-down event=sony/hotkey SNC 00000001 00000011 action=/etc/acpi/sony_brightness_up.sh
… then restart.
I do the steps that you refer in this post, but I can’t use the brightness Keys… is anything that can I do more to put this functions working?!?
thanks
http://dimonf.com/blog/2011/05/28/ubunt-11-04-laptop-sony-vaio-vpcy11s1e-wireless/
First, if the model is the same, I would expect it working. I’ve tried this solution of 3 different Ubuntu distros and it worked for all of them, inclusive 11.10. I’ve sent you a tgz archive with the original files, README and installation script, which must be executed under root.
[...] backlight / screen brightness is not working. Solution remains the same, as with previous Ubuntu distros (here). [...]