Xubuntu 18.04: make Fn brightness keys work with /sys/class/backlight/nv_backlight/
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
I have an old laptop, oldtimer linux fellow, and updated it to xubuntu 18.04.
After some sleep/resume problems with the proprietary nvidia-340 driver, I decided to try the nouveau. Sleep/resume ok. But there is a new problem: the brightness.
Using the proprietary driver, with Option "RegistryDwords" "EnableBrightnessControl=1"
in the xorg.conf
, the Fn-bright-up and Fn-bright-down keys work out of the box.
With the nouveau driver they don't.
$ ls /sys/class/backlight/
returns acpi_video0
and nv_backlight
.
As expected nothing can be done using acpi_video0
.
But, surprise! The nv_backlight
is working:
$ echo 20 | sudo tee /sys/class/backlight/nv_backlight/brightness
works!
But I don't know how to make my friend xfce knows that the Fn-bright-up and Fn-bright-down should talk with /sys/class/backlight/nv_backlight/brightness
instead of /sys/class/backlight/acpi_video0/brightness
.
Thank you.
nvidia xfce brightness backlight
add a comment |Â
up vote
1
down vote
favorite
I have an old laptop, oldtimer linux fellow, and updated it to xubuntu 18.04.
After some sleep/resume problems with the proprietary nvidia-340 driver, I decided to try the nouveau. Sleep/resume ok. But there is a new problem: the brightness.
Using the proprietary driver, with Option "RegistryDwords" "EnableBrightnessControl=1"
in the xorg.conf
, the Fn-bright-up and Fn-bright-down keys work out of the box.
With the nouveau driver they don't.
$ ls /sys/class/backlight/
returns acpi_video0
and nv_backlight
.
As expected nothing can be done using acpi_video0
.
But, surprise! The nv_backlight
is working:
$ echo 20 | sudo tee /sys/class/backlight/nv_backlight/brightness
works!
But I don't know how to make my friend xfce knows that the Fn-bright-up and Fn-bright-down should talk with /sys/class/backlight/nv_backlight/brightness
instead of /sys/class/backlight/acpi_video0/brightness
.
Thank you.
nvidia xfce brightness backlight
I modified the xfce4-power-manager_1.6.1 source code, changing xfpm-backlight-helper.c -> backlight_helper_get_best_backlight(), making it choose the raw backlight type instead of firmware or platform. It's a work for me only fix... Would be nice to have an option to change the preference order.
â dedalu
May 28 at 15:05
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have an old laptop, oldtimer linux fellow, and updated it to xubuntu 18.04.
After some sleep/resume problems with the proprietary nvidia-340 driver, I decided to try the nouveau. Sleep/resume ok. But there is a new problem: the brightness.
Using the proprietary driver, with Option "RegistryDwords" "EnableBrightnessControl=1"
in the xorg.conf
, the Fn-bright-up and Fn-bright-down keys work out of the box.
With the nouveau driver they don't.
$ ls /sys/class/backlight/
returns acpi_video0
and nv_backlight
.
As expected nothing can be done using acpi_video0
.
But, surprise! The nv_backlight
is working:
$ echo 20 | sudo tee /sys/class/backlight/nv_backlight/brightness
works!
But I don't know how to make my friend xfce knows that the Fn-bright-up and Fn-bright-down should talk with /sys/class/backlight/nv_backlight/brightness
instead of /sys/class/backlight/acpi_video0/brightness
.
Thank you.
nvidia xfce brightness backlight
I have an old laptop, oldtimer linux fellow, and updated it to xubuntu 18.04.
After some sleep/resume problems with the proprietary nvidia-340 driver, I decided to try the nouveau. Sleep/resume ok. But there is a new problem: the brightness.
Using the proprietary driver, with Option "RegistryDwords" "EnableBrightnessControl=1"
in the xorg.conf
, the Fn-bright-up and Fn-bright-down keys work out of the box.
With the nouveau driver they don't.
$ ls /sys/class/backlight/
returns acpi_video0
and nv_backlight
.
As expected nothing can be done using acpi_video0
.
But, surprise! The nv_backlight
is working:
$ echo 20 | sudo tee /sys/class/backlight/nv_backlight/brightness
works!
But I don't know how to make my friend xfce knows that the Fn-bright-up and Fn-bright-down should talk with /sys/class/backlight/nv_backlight/brightness
instead of /sys/class/backlight/acpi_video0/brightness
.
Thank you.
nvidia xfce brightness backlight
edited Jun 14 at 23:19
![](https://i.stack.imgur.com/2SXNl.jpg?s=32&g=1)
![](https://i.stack.imgur.com/2SXNl.jpg?s=32&g=1)
WinEunuuchs2Unix
34.2k756130
34.2k756130
asked May 28 at 1:03
dedalu
13816
13816
I modified the xfce4-power-manager_1.6.1 source code, changing xfpm-backlight-helper.c -> backlight_helper_get_best_backlight(), making it choose the raw backlight type instead of firmware or platform. It's a work for me only fix... Would be nice to have an option to change the preference order.
â dedalu
May 28 at 15:05
add a comment |Â
I modified the xfce4-power-manager_1.6.1 source code, changing xfpm-backlight-helper.c -> backlight_helper_get_best_backlight(), making it choose the raw backlight type instead of firmware or platform. It's a work for me only fix... Would be nice to have an option to change the preference order.
â dedalu
May 28 at 15:05
I modified the xfce4-power-manager_1.6.1 source code, changing xfpm-backlight-helper.c -> backlight_helper_get_best_backlight(), making it choose the raw backlight type instead of firmware or platform. It's a work for me only fix... Would be nice to have an option to change the preference order.
â dedalu
May 28 at 15:05
I modified the xfce4-power-manager_1.6.1 source code, changing xfpm-backlight-helper.c -> backlight_helper_get_best_backlight(), making it choose the raw backlight type instead of firmware or platform. It's a work for me only fix... Would be nice to have an option to change the preference order.
â dedalu
May 28 at 15:05
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
The nouveau driver now (some time ago it didn't) creates the /sys/class/backlight/nv_backlight
and it works. So passing acpi_backlight=vendor
to the kernel disables the /sys/class/backlight/acpi_video0
. Without acpi_video0
, the backlight_helper_get_best_backlight()
will return the nv_backlight out of the box.
So, open /etc/default/grub, edit:
GRUB_CMDLINE_LINUX_DEFAULT="[...] acpi_backlight=vendor"
Save and sudo update-grub
.
Of particular interest to you is this question whereacpi_backlight=vendor
didn't work and a custom script was the solution: askubuntu.com/questions/1045624/â¦
â WinEunuuchs2Unix
Jun 14 at 23:16
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
The nouveau driver now (some time ago it didn't) creates the /sys/class/backlight/nv_backlight
and it works. So passing acpi_backlight=vendor
to the kernel disables the /sys/class/backlight/acpi_video0
. Without acpi_video0
, the backlight_helper_get_best_backlight()
will return the nv_backlight out of the box.
So, open /etc/default/grub, edit:
GRUB_CMDLINE_LINUX_DEFAULT="[...] acpi_backlight=vendor"
Save and sudo update-grub
.
Of particular interest to you is this question whereacpi_backlight=vendor
didn't work and a custom script was the solution: askubuntu.com/questions/1045624/â¦
â WinEunuuchs2Unix
Jun 14 at 23:16
add a comment |Â
up vote
1
down vote
The nouveau driver now (some time ago it didn't) creates the /sys/class/backlight/nv_backlight
and it works. So passing acpi_backlight=vendor
to the kernel disables the /sys/class/backlight/acpi_video0
. Without acpi_video0
, the backlight_helper_get_best_backlight()
will return the nv_backlight out of the box.
So, open /etc/default/grub, edit:
GRUB_CMDLINE_LINUX_DEFAULT="[...] acpi_backlight=vendor"
Save and sudo update-grub
.
Of particular interest to you is this question whereacpi_backlight=vendor
didn't work and a custom script was the solution: askubuntu.com/questions/1045624/â¦
â WinEunuuchs2Unix
Jun 14 at 23:16
add a comment |Â
up vote
1
down vote
up vote
1
down vote
The nouveau driver now (some time ago it didn't) creates the /sys/class/backlight/nv_backlight
and it works. So passing acpi_backlight=vendor
to the kernel disables the /sys/class/backlight/acpi_video0
. Without acpi_video0
, the backlight_helper_get_best_backlight()
will return the nv_backlight out of the box.
So, open /etc/default/grub, edit:
GRUB_CMDLINE_LINUX_DEFAULT="[...] acpi_backlight=vendor"
Save and sudo update-grub
.
The nouveau driver now (some time ago it didn't) creates the /sys/class/backlight/nv_backlight
and it works. So passing acpi_backlight=vendor
to the kernel disables the /sys/class/backlight/acpi_video0
. Without acpi_video0
, the backlight_helper_get_best_backlight()
will return the nv_backlight out of the box.
So, open /etc/default/grub, edit:
GRUB_CMDLINE_LINUX_DEFAULT="[...] acpi_backlight=vendor"
Save and sudo update-grub
.
edited May 29 at 14:38
![](https://i.stack.imgur.com/mvyzZ.png?s=32&g=1)
![](https://i.stack.imgur.com/mvyzZ.png?s=32&g=1)
Stephen Rauch
1,1545716
1,1545716
answered May 29 at 13:26
dedalu
13816
13816
Of particular interest to you is this question whereacpi_backlight=vendor
didn't work and a custom script was the solution: askubuntu.com/questions/1045624/â¦
â WinEunuuchs2Unix
Jun 14 at 23:16
add a comment |Â
Of particular interest to you is this question whereacpi_backlight=vendor
didn't work and a custom script was the solution: askubuntu.com/questions/1045624/â¦
â WinEunuuchs2Unix
Jun 14 at 23:16
Of particular interest to you is this question where
acpi_backlight=vendor
didn't work and a custom script was the solution: askubuntu.com/questions/1045624/â¦â WinEunuuchs2Unix
Jun 14 at 23:16
Of particular interest to you is this question where
acpi_backlight=vendor
didn't work and a custom script was the solution: askubuntu.com/questions/1045624/â¦â WinEunuuchs2Unix
Jun 14 at 23:16
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041051%2fxubuntu-18-04-make-fn-brightness-keys-work-with-sys-class-backlight-nv-backlig%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
I modified the xfce4-power-manager_1.6.1 source code, changing xfpm-backlight-helper.c -> backlight_helper_get_best_backlight(), making it choose the raw backlight type instead of firmware or platform. It's a work for me only fix... Would be nice to have an option to change the preference order.
â dedalu
May 28 at 15:05