Roman_Gruber Advocate

Joined: 03 Oct 2006 Posts: 3806 Location: Austro Bavaria
|
Posted: Sun Oct 11, 2015 12:54 pm Post subject: Missing ACPI Key events / Backlight of Display not working |
|
|
Code: | ASUS-G75VW asus-nb-wmi # ls -alh
total 0
drwxr-xr-x 3 root root 0 Okt 11 14:19 .
drwxr-xr-x 3 root root 0 Okt 11 14:19 ..
-r--r--r-- 1 root root 4,0K Okt 11 14:45 actual_brightness
-rw-r--r-- 1 root root 4,0K Okt 11 14:45 bl_power
-rw-r--r-- 1 root root 4,0K Okt 11 14:45 brightness
lrwxrwxrwx 1 root root 0 Okt 11 14:45 device -> ../../../asus-nb-wmi
-r--r--r-- 1 root root 4,0K Okt 11 14:45 max_brightness
drwxr-xr-x 2 root root 0 Okt 11 14:45 power
lrwxrwxrwx 1 root root 0 Okt 11 14:45 subsystem -> ../../../../../class/backlight
-r--r--r-- 1 root root 4,0K Okt 11 14:45 type
-rw-r--r-- 1 root root 4,0K Okt 11 14:19 uevent
ASUS-G75VW asus-nb-wmi # cat actual_brightness
100
ASUS-G75VW asus-nb-wmi # cat max_brightness
100
ASUS-G75VW asus-nb-wmi # cat brightness
100
ASUS-G75VW asus-nb-wmi # echo 50 > brightness
ASUS-G75VW asus-nb-wmi # cat actual_brightness
100
ASUS-G75VW asus-nb-wmi # pwd
/sys/class/backlight/asus-nb-wmi
ASUS-G75VW asus-nb-wmi # lsmod
Module Size Used by
hid_holtek_mouse 1827 0
usbkbd 4447 0
usbhid 22882 0
nvidia 8588713 43
asus_nb_wmi 10616 0
asus_wmi 15624 1 asus_nb_wmi
x86_pkg_temp_thermal 4567 0
coretemp 5332 0
pcspkr 2035 0
input_leds 2894 0
i2c_i801 9205 0
drm 239598 3 nvidia
nvidiafb 34054 0
fb_ddc 1469 1 nvidiafb
i2c_algo_bit 4744 1 nvidiafb
vgastate 7625 1 nvidiafb
i2c_core 18905 6 drm,i2c_i801,i2c_algo_bit,fb_ddc,nvidia,nvidiafb
ehci_pci 3807 0
xhci_pci 3882 0
xhci_hcd 83056 1 xhci_pci
wmi 7419 1 asus_wmi
ehci_hcd 34845 1 ehci_pci
rtc_cmos 8188 0
ASUS-G75VW asus-nb-wmi # cd ..
ASUS-G75VW backlight # ls
asus-nb-wmi
|
Summarizes that when you tell that asus module to set the backlight it does nothing. it does not dimm the display.
When I run xev and hit Functional key and f5 or f6 it does not generate any event. These two keys should generate some acpi dispaly backlight key hit up / down event, nothing here.
For example the backlight for my keyboard works like this:
Code: | ASUS-G75VW asus::kbd_backlight # ls
brightness device max_brightness power subsystem trigger uevent
ASUS-G75VW asus::kbd_backlight # cat max_brightness
3
ASUS-G75VW asus::kbd_backlight # cat brightness
0
ASUS-G75VW asus::kbd_backlight # echo 2 > brightness
ASUS-G75VW asus::kbd_backlight # pwd
/sys/class/leds/asus::kbd_backlight
|
known bugs and they claim it works for them, but it does not for myself:
https://bugzilla.kernel.org/show_bug.cgi?id=67681
https://bugzilla.kernel.org/show_bug.cgi?id=90971
--
Regarding grub2 and booting i use this:
Code: | menuentry '4.2.3-gentoo_oscar_2015-10-10' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod fat
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 C14C-BF14
else
search --no-floppy --fs-uuid --set=root C14C-BF14
fi
echo 'Loading Linux 4.2.3-gentoo_india_2015-10-09 and the initramfs'
linux /4.2.3-gentoo_oscar_2015-10-10 acpi_backlight=vendor rootfstype=ext4 keymap=de init=/linuxrc ramdisk=8192 dolvm ...
initrd /initramfs-genkernel-x86_64-4.2.3-gentoo
}
|
I tried booting with
1) acpi_backlight=vendor
2) acpi_osi=!Windows 2012
or, ..was something like 3) acpi_osi=linux
4) video.use_native_backlight=1
5) acpi_backlight=legacy
no success.
This box, asus g75vw, has no dual gpu stuff. The nvidia 660m gtx is connected to the external connectors without the gpu cpu. has its benefit because the external connectors are 3d capable (who needs that) and hdmi 1.4 or so (what i read ..)
Bad workaround as user root:
Code: | ASUS-G75VW roman # xbacklight -dec 30
ASUS-G75VW roman # xbacklight -inc 100
|
Latest bios flashed from ASUS.
How can i get those fn + f4/f5 keys generating events ? xev report nothing for those keys / also dmesg nothing
How can i get that to react to the commands?
Code: | ASUS-G75VW asus-nb-wmi # pwd
/sys/class/backlight/asus-nb-wmi
ASUS-G75VW asus-nb-wmi # ls -alh
total 0
drwxr-xr-x 3 root root 0 Okt 11 14:19 .
drwxr-xr-x 3 root root 0 Okt 11 14:19 ..
-r--r--r-- 1 root root 4,0K Okt 11 14:45 actual_brightness
-rw-r--r-- 1 root root 4,0K Okt 11 14:45 bl_power
-rw-r--r-- 1 root root 4,0K Okt 11 14:45 brightness
lrwxrwxrwx 1 root root 0 Okt 11 14:45 device -> ../../../asus-nb-wmi
-r--r--r-- 1 root root 4,0K Okt 11 14:45 max_brightness
drwxr-xr-x 2 root root 0 Okt 11 14:45 power
lrwxrwxrwx 1 root root 0 Okt 11 14:45 subsystem -> ../../../../../class/backlight
-r--r--r-- 1 root root 4,0K Okt 11 14:45 type
-rw-r--r-- 1 root root 4,0K Okt 11 14:19 uevent
|
My kernel config is a bit a mess. I started from scratch with a genkernel config and than with every change and rebuild i counted up in alphabetcial order => I am now at letter oscar.
seems related ...
https://bugzilla.kernel.org/show_bug.cgi?id=98111 AS Asus uses mostly the same bios on their hardware ...
or
https://www.centos.org/forums/viewtopic.php?f=49&t=49333
I had for quite a while
those folders here
/sys/class/backlight/acpi_video0
/sys/class/backlight/acpi_video1
but they did not gave any reaction with the echo commands ..
Same output here as the centos guy.
Code: | dmesg|grep asus
[ 28.091974] asus_wmi: ASUS WMI generic driver loaded
[ 28.093618] asus_wmi: Initialization: 0x1
[ 28.093647] asus_wmi: BIOS WMI version: 7.9
[ 28.093673] asus_wmi: SFUN value: 0x6a0877
[ 28.094264] input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input18
[ 28.134786] asus_wmi: Number of fans: 1
|
My kernel is far away from claiming to be optimized.
/var/log/Xorg.0.log
https://bpaste.net/show/506acf157819
The only thing that may be a cause is that it says us layout, 104keys.
--
http://www.linlap.com/asus_g75vw
It seems i ahve to install shitty ubuntu again to see if it really works there. Worth a try, because I tried everything else and i did not succeed.
Quote: | NEWS about LCD backlight on G75VW:
Distro:
Operating system: Linux-x86_64 UBUNTU 14.04
Latest NVIDIA driver:
331.38
With latest BIOS @ latest kernel
The LCD backlight working
Work well…. |
... => ubuntu asks for a donation right on the download screen, wtf .. => Tell us what we should do more……and put your money where your mouth is
edit: Ubuntu dvd => livecd => kernel 3.19.x.x
Code: | roman@ASUS-G75VW ~ $ cat /boot/loaded_ubuntu_modules
Module Size Used by
arc4 16384 2
ath9k 147456 0
ath9k_common 32768 1 ath9k
intel_rapl 20480 0
btrfs 954368 0
ath9k_hw 458752 2 ath9k_common,ath9k
iosf_mbi 16384 1 intel_rapl
x86_pkg_temp_thermal 16384 0
intel_powerclamp 20480 0
snd_hda_codec_hdmi 53248 1
snd_hda_codec_via 32768 1
snd_hda_codec_generic 69632 1 snd_hda_codec_via
coretemp 16384 0
ath 32768 3 ath9k_common,ath9k,ath9k_hw
snd_hda_intel 32768 5
snd_hda_controller 32768 1 snd_hda_intel
mac80211 720896 1 ath9k
kvm_intel 151552 0
uvcvideo 90112 0
snd_hda_codec 143360 5 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
videobuf2_vmalloc 16384 1 uvcvideo
snd_hwdep 20480 1 snd_hda_codec
videobuf2_memops 16384 1 videobuf2_vmalloc
kvm 483328 1 kvm_intel
snd_pcm 106496 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
videobuf2_core 49152 1 uvcvideo
snd_seq_midi 16384 0
xor 24576 1 btrfs
snd_seq_midi_event 16384 1 snd_seq_midi
v4l2_common 16384 1 videobuf2_core
ath3k 16384 0
raid6_pq 98304 1 btrfs
videodev 159744 3 uvcvideo,v4l2_common,videobuf2_core
crct10dif_pclmul 16384 0
btusb 32768 0
snd_rawmidi 32768 1 snd_seq_midi
crc32_pclmul 16384 0
media 24576 2 uvcvideo,videodev
cfg80211 540672 4 ath,ath9k_common,ath9k,mac80211
bluetooth 491520 2 ath3k,btusb
snd_seq 69632 2 snd_seq_midi_event,snd_seq_midi
ghash_clmulni_intel 16384 0
hid_holtek_mouse 16384 0
aesni_intel 172032 0
asus_nb_wmi 24576 0
snd_seq_device 16384 3 snd_seq,snd_rawmidi,snd_seq_midi
asus_wmi 24576 1 asus_nb_wmi
snd_timer 32768 2 snd_pcm,snd_seq
sparse_keymap 16384 1 asus_wmi
aes_x86_64 20480 1 aesni_intel
dm_multipath 24576 0
snd 90112 21 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_via,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
mei_me 20480 0
scsi_dh 16384 1 dm_multipath
lrw 16384 1 aesni_intel
mei 90112 1 mei_me
soundcore 16384 2 snd,snd_hda_codec
lpc_ich 24576 0
gf128mul 16384 1 lrw
joydev 20480 0
glue_helper 16384 1 aesni_intel
shpchp 40960 0
serio_raw 16384 0
ablk_helper 16384 1 aesni_intel
mac_hid 16384 0
cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
parport_pc 32768 0
ppdev 20480 0
lp 20480 0
parport 45056 3 lp,ppdev,parport_pc
autofs4 40960 2
squashfs 49152 1
overlay 45056 1
nls_utf8 16384 1
isofs 40960 1
nls_iso8859_1 16384 1
dm_mirror 24576 0
dm_region_hash 24576 1 dm_mirror
dm_log 20480 2 dm_region_hash,dm_mirror
usbhid 53248 0
hid 110592 2 hid_holtek_mouse,usbhid
nouveau 1400832 4
mxm_wmi 16384 1 nouveau
i2c_algo_bit 16384 1 nouveau
ttm 98304 1 nouveau
drm_kms_helper 122880 1 nouveau
drm 344064 7 ttm,drm_kms_helper,nouveau
psmouse 118784 0
ahci 36864 3
libahci 32768 1 ahci
atl1c 49152 0
wmi 20480 3 mxm_wmi,nouveau,asus_wmi
video 20480 2 nouveau,asus_wmi
|
The backlight is tweakable as user root in a command line interface. No events generated for the key f5 and f6 wiht fn key. |
|