Skip to content

Instantly share code, notes, and snippets.

View bartcubbins's full-sized avatar

Pavel Dubrova bartcubbins

  • 08:57 (UTC +03:00)
View GitHub Profile
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"
[ 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
[ 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
--------- 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
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
tulip:/ $ ls -la /sys/devices/system/cpu/
total 0
drwxr-xr-x 14 root root 0 1970-04-18 11:00 .
drwxr-xr-x 4 root root 0 2017-02-10 00:02 ..
drwxr-xr-x 8 root root 0 1970-04-18 11:00 cpu0
drwxr-xr-x 5 root root 0 2017-02-10 00:13 cpu1
drwxr-xr-x 5 root root 0 2017-02-10 00:04 cpu2
drwxr-xr-x 5 root root 0 2017-02-10 00:09 cpu3
drwxr-xr-x 5 root root 0 2017-02-10 00:02 cpu4
drwxr-xr-x 5 root root 0 2017-02-10 00:02 cpu5
tulip:/ $ ls -la /sys/devices/system/cpu/cpu0
total 0
drwxr-xr-x 8 root root 0 1970-04-18 11:00 .
drwxr-xr-x 14 root root 0 1970-04-18 11:00 ..
drwxr-xr-x 4 root root 0 1970-04-18 11:01 cpufreq
drwxr-xr-x 6 root root 0 1970-04-18 11:00 cpuidle
drwxr-xr-x 2 root root 0 1970-04-18 11:00 cpuquiet
-rw-r--r-- 1 root root 4096 1970-04-18 11:00 online
drwxr-xr-x 2 root root 0 1970-04-18 11:00 power
drwxr-xr-x 2 root root 0 1970-04-18 11:00 rq-stats
/* Copyright (c) 2013-2015 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
## This file is used by NFC NXP NCI HAL(external/libnfc-nci/halimpl/pn547)
## and NFC Service Java Native Interface Extensions (packages/apps/Nfc/nci/jni/extns/pn547)
###############################################################################
# Application options
# Logging Levels
# NXPLOG_DEFAULT_LOGLEVEL 0x01
# ANDROID_LOG_DEBUG 0x03
# ANDROID_LOG_WARN 0x02
# ANDROID_LOG_ERROR 0x01
CONFIG_MMC=y
CONFIG_MMC_PERF_PROFILING=y
CONFIG_MMC_UNSAFE_RESUME=y
CONFIG_MMC_CLKGATE=y
CONFIG_MMC_PARANOID_SD_INIT=y
CONFIG_MMC_DDR50_MAX_DTR_LMT=y
CONFIG_MMC_SUPPORT_SVS_INTERVAL=y
CONFIG_MMC_BLOCK_MINORS=32
CONFIG_MMC_BLOCK_DEFERRED_RESUME=y
CONFIG_MMC_SDHCI=y