NP535U3C, xUbuntu 12.10 and backlight/brightness
Posted: 30 Mar 2013, 14:41
Hi there!
I've been looking for informations for long, long time how to fix
1. backlight controll (brigh)
2. backlight on after sleep
3. wifi on after sleep
I installed two Ubuntus - first it was Kubuntu 12.10 (luckily i did not brick my PC!).
There was nothing working. After update to 3.5.0-26-generic kernel (or some update with apt), my backlight after suspend became usable! but after some time it made some problems with audio, so i installed (as multiinstallation)...
xUbuntu 12.10.
and there was nothing working too!
after some research i added acpi_backlight=vendor and found brightness working.
then i installed samsung-laptop and bind to "Win+F4" samsung-laptop -b toggle. and it works. i can turn on and off backlight. it even worked once after sleep, but not anymore (i think i did not change anything at this time...).
as i can not check anything with wifi at the moment i do nothing about, but it looks like jupiter can do some work for us, but.. later.
so i tried almost anything i found (even some ridicculous ideas...)
there was some stuff with rmmod before sleep and modprobe after awake, recover status and so on, so on...
yes, i know, it is amd, but:
acpi=noirq causes keyboard and mouse to not respond. BUT, theese GRUB modification gives me drop of energy-rate from 18-20W to 9(!)-12W (at the moment). forget it, i was on ac...
interfaces seems to be ok, lid is always opened.
after sleep lid is opened and backlight turned on (states os)
huge delay with AC.
and dmesg:
http://paste.ubuntu.com/5661295/
That's all folks!
Thanks in advance!
edit.
and modprobe samsung-backlight does not work
I've been looking for informations for long, long time how to fix
1. backlight controll (brigh)
2. backlight on after sleep
3. wifi on after sleep
I installed two Ubuntus - first it was Kubuntu 12.10 (luckily i did not brick my PC!).
There was nothing working. After update to 3.5.0-26-generic kernel (or some update with apt), my backlight after suspend became usable! but after some time it made some problems with audio, so i installed (as multiinstallation)...
xUbuntu 12.10.
and there was nothing working too!
after some research i added acpi_backlight=vendor and found brightness working.
then i installed samsung-laptop and bind to "Win+F4" samsung-laptop -b toggle. and it works. i can turn on and off backlight. it even worked once after sleep, but not anymore (i think i did not change anything at this time...).
as i can not check anything with wifi at the moment i do nothing about, but it looks like jupiter can do some work for us, but.. later.
so i tried almost anything i found (even some ridicculous ideas...)
there was some stuff with rmmod before sleep and modprobe after awake, recover status and so on, so on...
Code: Select all
san@sammie:/sys$ cat /etc/pm/sleep.d/2*
=== 22_samsung-backlight ===
#!/bin/bash
case ${1} in
resume|thaw)
dbus-send --system --print-reply=literal --dest='org.voria.SamsungTools.System' '/' org.voria.SamsungTools.System.RestoreDevicesLastStatus
;;
esac
exit 0#!/bin/bash
case ${1} in
resume|thaw)
samsung-tools -b on
mkdir /home/san/debug
cat /sys/class/backlight/samsung/bl_power > /home/san/debug/bl_power
cat /proc/acpi/button/lid/LID/state > /home/san/debug/lid
#dbus-send --system --print-reply=literal --dest='org.voria.SamsungTools.System' '/' org.voria.SamsungTools.System.RestoreDevicesLastStatus
;;
esac
exit 0
=== 22_samsung-backlight ===
# !/bin/bash
#
# This script restores screen backlight on resume from suspend
# on Samsung NP900X3B/C.
#
case "$1" in
suspend|hibernate)
# do nothing
;;
resume|thaw)
# brightness value is not always accurate. Set to actual_brightness
# to restore brightness as it was before suspend.
#echo `cat /sys/class/backlight/intel_backlight/actual_brightness` > /sys/class/backlight/intel_backlight/brightness
# Toggle to activate the screen backlight
# echo 1 > "/sys/class/backlight/intel_backlight/bl_power"
# echo 0 > "/sys/class/backlight/intel_backlight/bl_power"
echo 1 > "/sys/devices/platform/samsung/backlight/samsung/bl_power"
echo 0 > "/sys/devices/platform/samsung/backlight/samsung/bl_power"
;;
*)
exit 1
esac
exit 0
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force acpi_os_name=\"Microsoft Windows XP\" intel_idle.max_cstate=0 acpi_osi=Linux acpi_backlight=vendor intel_iommu=off i915.modeset=1 i915.i915_enable_rc6=1 i915.lvds_downclock=1 i915.i915_enable_fbc=1 i915.semaphores=1"
acpi=noirq causes keyboard and mouse to not respond. BUT, theese GRUB modification gives me drop of energy-rate from 18-20W to 9(!)-12W (at the moment). forget it, i was on ac...
interfaces seems to be ok, lid is always opened.
after sleep lid is opened and backlight turned on (states os)
huge delay with AC.
Code: Select all
san@sammie:/sys$ for interface in /sys/class/backlight/*; do echo $interface; cat $interface/max_brightness; cat $interface/actual_brightness; cat $interface/brightness; done
/sys/class/backlight/samsung
8
8
8
cat /sys/module/video/parameters/brightness_switch_enabled
Y
cat /sys/module/video/parameters/brightness_autoswitch_via_bios
N
cat /etc/modprobe.d/blacklist.conf:
(...)
blacklist samsung-backlight
blacklist samsung-laptop
cat /etc/rc.local
(...)
modprobe samsung-laptop
modprobe samsung-backlight
exit 0
http://paste.ubuntu.com/5661295/
That's all folks!
Thanks in advance!
edit.
and modprobe samsung-backlight does not work
Code: Select all
sudo modprobe samsung-backlight
[sudo] password for san:
FATAL: Error inserting samsung_backlight (/lib/modules/3.5.0-26-generic/updates/dkms/samsung-backlight.ko): No such device