You are not logged in.

#1 2016-10-04 01:52:31

slowz3r
Member
From: Montana, USA
Registered: 2014-12-28
Posts: 9

Backlight on Panasonic CF-52 Toughbook with discrete graphics

Ok, So this is a new one to me since I've never had backlight adjustment issues on any laptop I've ever owned until this big ol' brick ended up in my lap.

Running gets me this

[andrew@andrew-pc ~]$ ls /sys/class/backlight/
panasonic  radeon_bl0

I went ahead and added the 

acpi_backlight=vendor

  which got rid of my backlight error I had during boot but I still get no function out of the adjustment keys or even the UI slider.

I looked into xbacklight and I guess that only supports intel. So i'm really stuck.  I've tried most of the things on the backlight wiki that I thought applied to my situation. 

Anyone have any other insight or maybe something special I can try?

Offline

#2 2016-10-04 13:36:47

halocaridina
Member
From: US
Registered: 2014-07-21
Posts: 77

Re: Backlight on Panasonic CF-52 Toughbook with discrete graphics

@slowz3r

You might want to try light-git from the AUR. See:

https://wiki.archlinux.org/index.php/Backlight#light

Its what I use since moving to the modeset video driver, which xbacklight does not work with.

You may then have to script a solution from there for using the GUI slider and/or adjustment keys.

Halocaridina


4X Intel(R) Xeon(R) CPU E7-8870 @ 2.40GHz; 256GiB; 11TB EXT4; SL6.8
2X Intel(R) Xeon(R) CPU E5-2680 @ 2.70GHz; 256GiB; 3.4TB EXT4; SL6.8
Thinkpad X250; Broadwell-ULT Core i5; 8GiB, 525GB Crucial_CT525MX3; Arch
Thinkpad T440S; Haswell-ULT Core i7; 12GiB, 512GB SanDisk X210; Arch

Offline

#3 2016-10-04 15:18:26

slowz3r
Member
From: Montana, USA
Registered: 2014-12-28
Posts: 9

Re: Backlight on Panasonic CF-52 Toughbook with discrete graphics

halocaridina wrote:

@slowz3r

You might want to try light-git from the AUR. See:

https://wiki.archlinux.org/index.php/Backlight#light

Its what I use since moving to the modeset video driver, which xbacklight does not work with.

You may then have to script a solution from there for using the GUI slider and/or adjustment keys.

Halocaridina


Went ahead and installed light and it works running it through terminal.  I went ahead and got xbindkeys installed and setup but now that wont really do anything for me.

my ~/.xbindkeysrc file looks like this

 increase brightness
"light -A 10"
    m:0x0 + c:233

# decrease brightness
"light -U 10"
    m:0x0 + c:232

its fn+f3 and fn+f2 respectively.  I get nothing out of it.

What script/kind of set up do you use for yourself

Offline

#4 2016-10-04 15:33:57

halocaridina
Member
From: US
Registered: 2014-07-21
Posts: 77

Re: Backlight on Panasonic CF-52 Toughbook with discrete graphics

Glad to hear that light worked. I'm using the following in my i3 config file:

bindsym XF86MonBrightnessUp exec --no-startup-id /usr/local/bin/brightness_indicator.sh up
bindsym XF86MonBrightnessDown exec --no-startup-id /usr/local/bin/brightness_indicator.sh down

which is tied to this script:

#!/bin/env sh

usage="usage: $0 -c {up|down} -i [increment]"
command=
increment=10

while getopts i:h o
do case "$o" in
    i) increment=$OPTARG;;
    h) echo "$usage"; exit 0;;
    ?) echo "$usage"; exit 0;;
esac
done

shift $(($OPTIND - 1))
command=$1

if [ "$command" = "" ]; then
    echo "usage: $0 {up|down} [increment]"
    exit 0;
fi

display_brightness=0

if [ "$command" = "up" ]; then
    display_brightness=$(light -A $increment && light -G | awk -F"." '{print $1}')
    icon_name="/usr/share/icons/gnome-colors-common/scalable/notifications/notification-display-brightness-high.svg"
fi

if [ "$command" = "down" ]; then
    display_brightness=$(light -U $increment && light -G | awk -F"." '{print $1}')
    icon_name="/usr/share/icons/gnome-colors-common/scalable/notifications/notification-display-brightness-high.svg"
fi

notify-send " " -i $icon_name -h int:value:$display_brightness -h string:synchronous:brightness --expire-time=1000

which provides a brightness change indicator. One of the methods provided at the below link should help ID which codes need to be associated with those keys for the binding to light:

https://wiki.archlinux.org/index.php/Ex … board_keys

Halocaridina


4X Intel(R) Xeon(R) CPU E7-8870 @ 2.40GHz; 256GiB; 11TB EXT4; SL6.8
2X Intel(R) Xeon(R) CPU E5-2680 @ 2.70GHz; 256GiB; 3.4TB EXT4; SL6.8
Thinkpad X250; Broadwell-ULT Core i5; 8GiB, 525GB Crucial_CT525MX3; Arch
Thinkpad T440S; Haswell-ULT Core i7; 12GiB, 512GB SanDisk X210; Arch

Offline

Board footer

Powered by FluxBB