Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xrandr, where are the changes done?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Dec 16, 2015 4:19 am    Post subject: xrandr, where are the changes done? Reply with quote

For some reason the bios / linux kernel / nvidia binary blob is unable to generate acpi key events for the brightness and wlan keys on my notebook.

But I found something interesting:

Code:
xrandr --properties
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
VGA-0 disconnected primary (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: VGA
      supported: VGA
   ConnectorType: VGA
   ConnectorNumber: 1
   _ConnectorLocation: 1
LVDS-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
   Backlight: 90
      range: (0, 100)
   EDID:
      00ffffffffffff000daf201700000000
      021501049026157802ed95a3544c9c26
      0f505400000001010101010101010101
      010101010101e13680ae703826403423
      36007ed71000001a1d2480a070381f40
      302035007ed71000001a000000fe0048
      4339474b803137334847450a00000000
      000041319e0000000002010a202000f3
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: LVDS
      supported: LVDS
   ConnectorType: Panel
   ConnectorNumber: 0
   _ConnectorLocation: 0
   1920x1080     60.01*+  40.01 
DP-0 disconnected (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: TMDS
      supported: TMDS
   ConnectorType: DisplayPort
   ConnectorNumber: 3
   _ConnectorLocation: 3
HDMI-0 disconnected (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: TMDS
      supported: TMDS
   ConnectorType: HDMI
   ConnectorNumber: 2
   _ConnectorLocation: 2
DP-1 disconnected (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: DisplayPort
      supported: DisplayPort
   ConnectorType: DisplayPort
   ConnectorNumber: 3
   _ConnectorLocation: 3
xrandr --properties
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
VGA-0 disconnected primary (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: VGA
      supported: VGA
   ConnectorType: VGA
   ConnectorNumber: 1
   _ConnectorLocation: 1
LVDS-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
   Backlight: 90
      range: (0, 100)
   EDID:
      00ffffffffffff000daf201700000000
      021501049026157802ed95a3544c9c26
      0f505400000001010101010101010101
      010101010101e13680ae703826403423
      36007ed71000001a1d2480a070381f40
      302035007ed71000001a000000fe0048
      4339474b803137334847450a00000000
      000041319e0000000002010a202000f3
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: LVDS
      supported: LVDS
   ConnectorType: Panel
   ConnectorNumber: 0
   _ConnectorLocation: 0
   1920x1080     60.01*+  40.01 
DP-0 disconnected (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: TMDS
      supported: TMDS
   ConnectorType: DisplayPort
   ConnectorNumber: 3
   _ConnectorLocation: 3
HDMI-0 disconnected (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: TMDS
      supported: TMDS
   ConnectorType: HDMI
   ConnectorNumber: 2
   _ConnectorLocation: 2
DP-1 disconnected (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: DisplayPort
      supported: DisplayPort
   ConnectorType: DisplayPort
   ConnectorNumber: 3
   _ConnectorLocation: 3


the tool xbacklight only works on one virtual screen, so that tool is really worthless when i work on 10 virtual x-server and sometimes on the console, but ...


This line really heavily reduced the backlight
Code:
roman@ASUS-G75VW ~ $ xrandr --output LVDS-0 --set Backlight 10


And this sets it back.
Code:
roman@ASUS-G75VW ~ $ xrandr --output LVDS-0 --set Backlight 80
roman@ASUS-G75VW ~ $ xrandr --output LVDS-0 --set Backlight 100


What really amazes me now is that:

Code:
roman@ASUS-G75VW ~ $ xrandr --output LVDS-0 --set Backlight 10


sets down the backlight and it is persistent on
terminal consoles (tty1 and higher) and any virtual x-server screens (those virtual desctops in i3wm, starting from window 1 - ....)

Usually when i set it with xbackligth -dec 10, and i switched virtual screens, the effect was gone.


Code:
xrandr --properties
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
VGA-0 disconnected primary (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: VGA
      supported: VGA
   ConnectorType: VGA
   ConnectorNumber: 1
   _ConnectorLocation: 1
LVDS-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
   Backlight: 2
      range: (0, 100)
   EDID:
      00ffffffffffff000daf201700000000
      021501049026157802ed95a3544c9c26
      0f505400000001010101010101010101
      010101010101e13680ae703826403423
      36007ed71000001a1d2480a070381f40
      302035007ed71000001a000000fe0048
      4339474b803137334847450a00000000
      000041319e0000000002010a202000f3
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: LVDS
      supported: LVDS
   ConnectorType: Panel
   ConnectorNumber: 0
   _ConnectorLocation: 0
   1920x1080     60.01*+  40.01 
DP-0 disconnected (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: TMDS
      supported: TMDS
   ConnectorType: DisplayPort
   ConnectorNumber: 3
   _ConnectorLocation: 3
HDMI-0 disconnected (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: TMDS
      supported: TMDS
   ConnectorType: HDMI
   ConnectorNumber: 2
   _ConnectorLocation: 2
DP-1 disconnected (normal left inverted right x axis y axis)
   BorderDimensions: 4
      supported: 4
   Border: 0 0 0 0
      range: (0, 65535)
   SignalFormat: DisplayPort
      supported: DisplayPort
   ConnectorType: DisplayPort
   ConnectorNumber: 3
   _ConnectorLocation: 3


Second positive thing, it works as ordinary user too.! not as user root.

When you ask me, why do you not set it in /sys/class, because it does not work!

Code:
ASUS-G75VW backlight # ls -alh
total 0
drwxr-xr-x  2 root root 0 Dez 16 04:29 .
drwxr-xr-x 75 root root 0 Dez 16 04:29 ..
lrwxrwxrwx  1 root root 0 Dez 16 04:29 acpi_video0 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/backlight/acpi_video0
lrwxrwxrwx  1 root root 0 Dez 16 04:29 acpi_video1 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/backlight/acpi_video1


See my kernel-bug which leads basically to nothing.
https://bugzilla.kernel.org/show_bug.cgi?id=106901


---

Are those backlight changes accessable with a /sys/.... directory or not?

Where does the xrandr stuff get its information?

Code:
LVDS-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
   Backlight: 2
      range: (0, 100)


Yes it is obvious, that this is my internal screen, connected via LVDS cable, as any laptop uses this for over 10 years afaik.
At least for my previous laptop i had to order several lvds cables because they were broken...


I assumed it was impossible to set the backlight but now i see it seems to be possible "hardware" side wise via the xrandr extension. I really wonder where it gets its information and if there is some way to get those acpi events for the keys going or interact somehow.

Is this xrandr stuff i use just software manipulation, or am I right in my assumption that this really turns down the backlight hardware side, and not just change the gamma value of the three colours?

Thanks for reading
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Sat Dec 19, 2015 11:26 am    Post subject: Reply with quote

It looks like you already tried all the obvious things.

One more thing that you might attempt is booting with acpi_osi="Linux" instead of "!Windows2012" to see if that causes more and/or working controls to appear in /sys/class/backlight

The backlight is probably controlled through the NVidia proprietary driver. You can check that by temporarily switching to nouveau, which (if my guess is correct) would make the xbacklight application no longer work. In that case, app-laptop/nvidiabl may help you.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sat Dec 19, 2015 1:23 pm    Post subject: Reply with quote

Thanks for the advice i already tried that grub kernel parameter.

I will test out nouveau on a backup which i make today. That backup was planned and so i can test if that backup is bootable and I can screw up that backup. no hassle to switch back to the binary driver, as it will be overwriiten anyway in near future. I am also curious how the open source stuff handles a 2 years old gpu, 660m gtx is rather antique in the gamer world.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum