please post the output of
ls /sys/class/backlight/
and
xrandr --verbose
please post the output of
ls /sys/class/backlight/
and
xrandr --verbose
amdgpu_bl1 nvidia_0
and
eDP connected primary 1920x1080+0+0 (0x54) normal (normal left inverted right x axis y axis) 344mm x 193mm
Identifier: 0x52
Timestamp: 15340
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 0
CRTCs: 0 1 2 3
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
EDID:
00ffffffffffff0006af8db700000000
261d0104a5221378033e859156599128
1f505400000001010101010101010101
010101010101b68580a070383e406c30
350058c1100000180000000000000000
00000000000000000000000000fe0041
554f0a202020202020202020000000fe
004231353648414e30392e32200a009b
GAMMA_LUT_SIZE: 4096
range: (0, -1)
DEGAMMA_LUT_SIZE: 4096
range: (0, -1)
GAMMA_LUT: 0
range: (0, 65535)
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
DEGAMMA_LUT: 0
range: (0, 65535)
TearFree: auto
supported: off, on, auto
HDCP Content Type: HDCP Type0
supported: HDCP Type0, HDCP Type1
Content Protection: Undesired
supported: Undesired, Desired, Enabled
vrr_capable: 0
range: (0, 1)
abm level: 0
range: (0, 4)
max bpc: 16
range: (8, 16)
underscan vborder: 0
range: (0, 128)
underscan hborder: 0
range: (0, 128)
underscan: off
supported: off, on, auto
scaling mode: None
supported: None, Full, Center, Full aspect
link-status: Good
supported: Good, Bad
CONNECTOR_ID: 78
supported: 78
non-desktop: 0
range: (0, 1)
1920x1080 (0x54) 342.300MHz -HSync -VSync *current +preferred
h: width 1920 start 2028 end 2076 total 2080 skew 0 clock 164.57KHz
v: height 1080 start 1083 end 1088 total 1142 clock 144.10Hz
1680x1050 (0x55) 342.300MHz -HSync -VSync
h: width 1680 start 2028 end 2076 total 2080 skew 0 clock 164.57KHz
v: height 1050 start 1083 end 1088 total 1142 clock 144.10Hz
1280x1024 (0x56) 342.300MHz -HSync -VSync
h: width 1280 start 2028 end 2076 total 2080 skew 0 clock 164.57KHz
v: height 1024 start 1083 end 1088 total 1142 clock 144.10Hz
1440x900 (0x57) 342.300MHz -HSync -VSync
h: width 1440 start 2028 end 2076 total 2080 skew 0 clock 164.57KHz
v: height 900 start 1083 end 1088 total 1142 clock 144.10Hz
1280x800 (0x58) 342.300MHz -HSync -VSync
h: width 1280 start 2028 end 2076 total 2080 skew 0 clock 164.57KHz
v: height 800 start 1083 end 1088 total 1142 clock 144.10Hz
1280x720 (0x59) 342.300MHz -HSync -VSync
h: width 1280 start 2028 end 2076 total 2080 skew 0 clock 164.57KHz
v: height 720 start 1083 end 1088 total 1142 clock 144.10Hz
1024x768 (0x5a) 342.300MHz -HSync -VSync
h: width 1024 start 2028 end 2076 total 2080 skew 0 clock 164.57KHz
v: height 768 start 1083 end 1088 total 1142 clock 144.10Hz
800x600 (0x5b) 342.300MHz -HSync -VSync
h: width 800 start 2028 end 2076 total 2080 skew 0 clock 164.57KHz
v: height 600 start 1083 end 1088 total 1142 clock 144.10Hz
640x480 (0x5c) 342.300MHz -HSync -VSync
h: width 640 start 2028 end 2076 total 2080 skew 0 clock 164.57KHz
v: height 480 start 1083 end 1088 total 1142 clock 144.10Hz
DP-1-0 disconnected (normal left inverted right x axis y axis)
Identifier: 0x1f9
Timestamp: 4591
Subpixel: unknown
Clones:
CRTCs: 4 5 6 7
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
PRIME Synchronization: 1
supported: 0, 1
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
BorderDimensions: 4
supported: 4
Border: 0 0 0 0
range: (0, 65535)
SignalFormat: DisplayPort
supported: DisplayPort
ConnectorType: DisplayPort
ConnectorNumber: 0
_ConnectorLocation: 0
non-desktop: 0
supported: 0, 1
DP-1-1 disconnected (normal left inverted right x axis y axis)
Identifier: 0x1fa
Timestamp: 4591
Subpixel: unknown
Clones:
CRTCs: 4 5 6 7
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
PRIME Synchronization: 1
supported: 0, 1
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
BorderDimensions: 4
supported: 4
Border: 0 0 0 0
range: (0, 65535)
SignalFormat: TMDS
supported: TMDS
ConnectorType: DisplayPort
ConnectorNumber: 0
_ConnectorLocation: 0
non-desktop: 0
supported: 0, 1
HDMI-1-0 disconnected (normal left inverted right x axis y axis)
Identifier: 0x1fb
Timestamp: 4591
Subpixel: unknown
Clones:
CRTCs: 4 5 6 7
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
PRIME Synchronization: 1
supported: 0, 1
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
BorderDimensions: 4
supported: 4
Border: 0 0 0 0
range: (0, 65535)
SignalFormat: TMDS
supported: TMDS
ConnectorType: HDMI
ConnectorNumber: 1
_ConnectorLocation: 1
non-desktop: 0
supported: 0, 1
DP-1-2 disconnected (normal left inverted right x axis y axis)
Identifier: 0x1fc
Timestamp: 4591
Subpixel: unknown
Clones:
CRTCs: 4 5 6 7
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
PRIME Synchronization: 1
supported: 0, 1
CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1
CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
BorderDimensions: 4
supported: 4
Border: 0 0 0 0
range: (0, 65535)
SignalFormat: DisplayPort
supported: DisplayPort
ConnectorType: Panel
ConnectorNumber: 3
_ConnectorLocation: 3
non-desktop: 0
supported: 0, 1```
okay, let’s test something
xrandr --output 0x52 --brightness 0.5
(where brightness is between 0 and 1 in 0.1 steps)
does it affect the brightness ?
Yes, it did. Brightness was lowered significantly.
okay, please set it back to 1 (that should be 100%). is it correct or still too dark ?
It feels like it was returned to 100%.
okay there is an issue with the lenovo and the kernel but the only description i got is from a lenovo 7 / 7i. can you check the hardware-difference between this and yours and additional please post the output as described here
Welcome to Manjaro!
inxi --admin --verbosity=7 --filter --no-host --width
would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)I`ve checked and the differences between Legion 5 and Legion 7 are negligible.
Kernel: 5.16.7-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.16-x86_64
root=UUID=fd159167-2945-462b-8821-1e90ae3cf87b rw quiet apparmor=1
security=apparmor udev.log_priority=3
Desktop: KDE Plasma 5.23.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 82B1 v: Lenovo Legion 5 15ARH05H
serial: <superuser required> Chassis: type: 10 v: Lenovo Legion 5 15ARH05H
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required>
UEFI: LENOVO v: FSCN18WW date: 01/01/2021
Battery:
ID-1: BAT0 charge: 75.8 Wh (100.0%) condition: 75.8/80.0 Wh (94.7%)
volts: 17.3 min: 15.4 model: Celxpert L19C4PC1 type: Li-poly
serial: <filter> status: Full cycles: 41
Memory:
RAM: total: 15.07 GiB used: 4.57 GiB (30.4%)
RAM Report:
permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 2 family: 0x17 (23) model-id: 0x60 (96) stepping: 1
microcode: 0x8600104
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 8 MiB
desc: 2x4 MiB
Speed (MHz): avg: 3953 high: 3968 min/max: 1400/2900 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3957 2: 3958
3: 3949 4: 3949 5: 3949 6: 3955 7: 3946 8: 3936 9: 3953 10: 3945 11: 3968
12: 3964 13: 3956 14: 3960 15: 3957 16: 3954 bogomips: 92663
Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid
f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs
irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe
msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae
pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
pfthreshold pge pni popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a
rdtscp rep_good sep sha_ni skinit smap smca smep ssbd sse sse2 sse4_1
sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce topoext tsc
tsc_scale umip v_spec_ctrl v_vmsave_vmload vgif vmcb_clean vme vmmcall
wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional,
IBRS_FW, STIBP: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Lenovo
driver: nvidia v: 510.47.03 alternate: nouveau,nvidia_drm bus-ID: 01:00.0
chip-ID: 10de:1f15 class-ID: 0300
Device-2: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel
bus-ID: 06:00.0 chip-ID: 1002:1636 class-ID: 0300
Device-3: IMC Networks Integrated Camera type: USB driver: uvcvideo
bus-ID: 3-3:2 chip-ID: 13d3:56ff class-ID: 0e02
Display: x11 server: X.org 1.21.1.3 compositor: kwin_x11 driver:
loaded: amdgpu,ati,nvidia unloaded: modesetting,nouveau
alternate: fbdev,nv,vesa resolution: <missing: xdpyinfo>
Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
Device-1: NVIDIA TU106 High Definition Audio vendor: Lenovo
driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:10f9
class-ID: 0403
Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
vendor: Lenovo driver: N/A
alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x bus-ID: 06:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel
v: kernel bus-ID: 06:00.6 chip-ID: 1022:15e3 class-ID: 0403
Sound Server-1: ALSA v: k5.16.7-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.20 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.45 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Lenovo driver: r8169 v: kernel port: 2000 bus-ID: 03:00.0
chip-ID: 10ec:8168 class-ID: 0200
IF: eno1 state: down mac: <filter>
Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 04:00.0
chip-ID: 8086:2723 class-ID: 0280
IF: wlp4s0 state: down mac: <filter>
IF-ID-1: enp6s0f4u1u1 state: unknown speed: -1 duplex: half mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
broadcast: <filter>
IP v6: <filter> type: dynamic noprefixroute scope: global
IP v6: <filter> type: noprefixroute scope: link
WAN IP: <filter>
Bluetooth:
Device-1: Qualcomm MTS 8920FT type: USB driver: rndis_host v: kernel
bus-ID: 5-1.1:4 chip-ID: 05c6:f00e class-ID: 0a00 serial: <filter>
Report: This feature requires one of these tools: hciconfig/bt-adapter
Device-2: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 5-3:3 chip-ID: 8087:0029 class-ID: e001
Report: ID: hci0 rfk-id: 3 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: N/A
Logical:
Message: No logical block device data found.
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 942.7 GiB used: 255.03 GiB (27.1%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:2 vendor: SK Hynix
model: HFS512GD9TNI-L2A0B size: 476.94 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 11010C10 temp: 34.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Western Digital
model: WDS500G2B0C-00PXH0 size: 465.76 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 233010WD temp: 26.9 C scheme: GPT
Message: No optical or floppy data found.
Partition:
ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%)
used: 23.63 GiB (5.0%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:4
label: N/A uuid: fd159167-2945-462b-8821-1e90ae3cf87b
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:3
label: NO_LABEL uuid: 97BE-6A48
ID-3: /run/media/miller/Second raw-size: 465.76 GiB
size: 465.76 GiB (100.00%) used: 231.4 GiB (49.7%) fs: btrfs
dev: /dev/nvme1n1p1 maj-min: 259:1 label: Second
uuid: 07e71df0-6b9a-4c87-b190-3dddfcbe95c0
Swap:
Alert: No swap data was found.
Unmounted:
Message: No unmounted partitions found.
USB:
Hub-1: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 3-3:2 info: IMC Networks Integrated Camera type: Video
driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
chip-ID: 13d3:56ff class-ID: 0e02
Hub-2: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Hub-3: 5-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Hub-4: 5-1:2 info: Genesys Logic Hub ports: 2 rev: 2.1 speed: 480 Mb/s
chip-ID: 05e3:0610 class-ID: 0900
Device-1: 5-1.1:4 info: Qualcomm MTS 8920FT type: Bluetooth,CDC-Data
driver: rndis_host interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
chip-ID: 05c6:f00e class-ID: 0a00 serial: <filter>
Device-2: 5-3:3 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb
interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029
class-ID: e001
Device-3: 5-4:5 info: Integrated Express ITE Device(8910) type: Keyboard
driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s
power: 100mA chip-ID: 048d:c100 class-ID: 0301
Hub-5: 6-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Hub-6: 6-1:2 info: Genesys Logic GL3523 Hub ports: 2 rev: 3.2
speed: 5 Gb/s chip-ID: 05e3:0620 class-ID: 0900
Sensors:
System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 56.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 375 Uptime: 1h 33m wakeups: 4 Init: systemd v: 250
tool: systemctl Compilers: gcc: 11.1.0 clang: 13.0.1 Packages: pacman: 1271
lib: 341 flatpak: 0 Shell: Zsh v: 5.8 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.12
For what I recall, xbacklight only works with Intel GPU.
When using AMD or Nvidia one needs something different.
Try installing the package acpilight - add yourself to the group video and reboot.
sudo gpasswd -a $USER video
did you ever changed the grub-config ? there is a workaround for lenovo. please read the links below carefully, but please ask before you change something that will cause pain. one solution is described here
but it differs from the solution here, because one is using intel_backlight but the other one uses acpi_video
https://wiki.archlinux.org/title/Lenovo_Legion_7i
how to edit kernel parameters is described here
https://wiki.archlinux.org/title/Kernel_parameters
please read carefully and if you feel firm to go on post back to prepare the next steps
hope this is helpful for you
P.S.: the tip of @linux-aarhus might be more actual. you can give it a try.
I did that and nothing has changed (at least it wasn`t visible to me).
I changed grub a while ago (deleted old Windows entry), but it was 2 distros before this.
And now I think we fixed it!
I used the method in your first link
really ? please recheck
ls /sys/class/backlight/
is there a additional called acpi- whatever ?
Now it says
acpi_video0 acpi_video1 amdgpu_bl1 nvidia_0
okay so this was the trick to add the ordinary acpi (luckily) because acpi is working on your lenovo.
I am delighted to have fixed the problem in such a short time. I hope everything will work just fine from now on. Thank you for your help, Olli. And thanks to you too, linux-aarhus for your input. Should I mark my own post as a solution even though you posted the link to it in the first place, Olli?
Hi There !!
Sry for comin’ up late
Coincidentally We share the exact laptop even the model
and I had pulled the brightness issue on my laptop some days ago…
I run 60 Whr instead of 80… Can I ask you how is your battery life ?
You actually experienced this brightness issue a little late
Some update of Amd-ucode caused this issue like 1 month ago…
The only problem I felt was fully powering down Nvidia gpu
nvidia-smi
Test this in cmd… You will see the nvidia is powered on no matter what
However some folkes found the ways to power down nvidia for extra hour of life. Link here
I personally haven’t tested this cause I am happy with my 2 and half hour of 100 % to 30%.
I don’t recommend you this… Just enlightening you becuase the track to poweron the nvidia again is really nerve wrecking
Battery life is great for me when using this laptop as a torrent downloading machine with closed down lid without connecting to power adapter. Usually I get more than 4 hrs out of it. When watching high-quality videos through VLC on medium brightness I get about 3.5 hours, on max brightness about 2.5 hours, I haven`t checked specifically, of course, just an estimate.
About nvidia
| NVIDIA-SMI 510.47.03 Driver Version: 510.47.03 CUDA Version: 11.6 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| N/A 34C P8 1W / N/A | 5MiB / 6144MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 748 G /usr/lib/Xorg 4MiB |
+-----------------------------------------------------------------------------+```
@kanpeki can you please change the topic name to Lenovo Laptop specific such as
Laptop brightness issue in Lenovo Legion Laptop or Lenovo Laptop
It would be a easier search for those who are going to run across this issue in the future specially for Lenovo Laptop users
And just a tip: if you ever plan to use Lightdm manager you are likely to have lightdm crashing for once in every 20 boot…
Since you have an advanced system that boots in superfast mode, then lightdm and graphics drivers may run into race conditions. The lightdm service may start before the Kernel loads the graphics drivers. If this is the case, you may try to add the following lines in the /etc/lightdm/lightdm.conf
file under [lightDM]
section.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.