Skip to content

Instantly share code, notes, and snippets.

View bartcubbins's full-sized avatar

Pavel Dubrova bartcubbins

  • 06:21 (UTC +03:00)
View GitHub Profile
tulip:/ $ ls -la /sys/class/thermal/
total 0
drwxr-xr-x 2 root root 0 1970-04-18 11:00 .
drwxr-xr-x 74 root root 0 2017-02-10 00:02 ..
lrwxrwxrwx 1 root root 0 1970-04-18 11:00 thermal_zone0 -> ../../devices/virtual/thermal/thermal_zone0
lrwxrwxrwx 1 root root 0 1970-04-18 11:00 thermal_zone1 -> ../../devices/virtual/thermal/thermal_zone1
lrwxrwxrwx 1 root root 0 1970-04-18 11:00 thermal_zone10 -> ../../devices/virtual/thermal/thermal_zone10
lrwxrwxrwx 1 root root 0 1970-04-18 11:00 thermal_zone11 -> ../../devices/virtual/thermal/thermal_zone11
lrwxrwxrwx 1 root root 0 1970-04-18 11:00 thermal_zone12 -> ../../devices/virtual/thermal/thermal_zone12
lrwxrwxrwx 1 root root 0 1970-04-18 11:00 thermal_zone13 -> ../../devices/virtual/thermal/thermal_zone13
--------- beginning of main
04-18 11:00:09.911 348 348 W auditd : type=2000 audit(0.0:1): initialized
04-18 11:00:21.169 348 348 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
04-18 11:00:23.959 323 323 I ueventd : type=1400 audit(0.0:3): avc: denied { getattr } for path="/firmware/image/modem.mdt" dev="mmcblk0p18" ino=4 scontext=u:r:ueventd:s0 tcontext=u:object_r:vfat:s0 tclass=file permissive=1
04-18 11:01:25.694 365 365 I : debuggerd: starting
04-18 11:01:25.769 364 364 I : debuggerd: starting
--------- beginning of system
04-18 11:01:25.783 366 366 I vold : Vold 3.0 (the awakening) firing up
04-18 11:01:25.783 366 366 V vold : Detected support for: ext4 vfat
04-18 11:01:26.060 366 372 D vold : e4crypt_init_user0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.84 (pasha@home-pc) (gcc version 4.9 20150123 (prerelease) (GCC) ) #40 SMP PREEMPT Thu Feb 9 23:48:12 EET 2017
[ 0.000000] CPU: AArch64 Processor [410fd031] revision 1
[ 0.000000] Machine: SoMC Tulip SMB1360
[ 0.000000] cma: Found external_image__region@0, memory base 0x0000000086000000, size 8 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found modem_adsp_region@0, memory base 0x0000000086800000, size 86 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found pheripheral_region@0, memory base 0x000000008be00000, size 6 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found venus_region@0, memory base 0x0000000000000000, size 5 MiB, limit 0x0000000090000000
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.84 (pasha@home-pc) (gcc version 4.9 20150123 (prerelease) (GCC) ) #31 SMP PREEMPT Thu Feb 9 20:39:15 EET 2017
[ 0.000000] CPU: AArch64 Processor [410fd031] revision 1
[ 0.000000] Machine: SoMC Tulip SMB1360
[ 0.000000] cma: Found external_image__region@0, memory base 0x0000000086000000, size 8 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found modem_adsp_region@0, memory base 0x0000000086800000, size 86 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found pheripheral_region@0, memory base 0x000000008be00000, size 6 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found venus_region@0, memory base 0x0000000000000000, size 5 MiB, limit 0x0000000090000000
I was able to get my brightness keys working on my Lenovo W530 on Ubuntu 12.04.
These days X automatically configures itself, so creating an xorg.conf file might make your system inflexible. Instead you can add a section to a file in /usr/share/X11/xorg.conf.d/ and X will include that section in the configuration that it automatically generates.
So to get the screen brightness keys working with your Nvidia graphics card, create a file in the xorg.conf.d directory, e.g:
sudo gedit /usr/share/X11/xorg.conf.d/10-nvidia-brightness.conf
Paste the following into the file:
Section "Device"