HP Victus new Vanessa installation backlight not working

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: HP Victus new Vanessa installation backlight not working

Post by roblm »

You can load the nvidia_wmi_ec_backlight kernel module automatically during startup by adding it to the /etc/modules file. Open the file using this command: xed admin:///etc/modules
Add nvidia_wmi_ec_backlight at the bottom.

After doing that, you should test removing the amdgpu.backlight=1 parameter in the grub file.
After updating grub and rebooting, if you can’t change the brightness, then try a suspend/resume cycle.

The steps you have been trying are based on the article in this link provided previously by SMG:
https://lore.kernel.org/all/v_ODhOndx3g ... ail.com/T/

From reading other similar articles, the bug causing the problem should have been fixed in the 5.16 kernel, which has the nvidia_wmi_ec_backlight module.

You can try as a last resort using setpci, as described here, under the section: The more difficult method to fix the brightness: setpci
https://easylinuxtipsproject.blogspot.c ... html#ID4.3

Otherwise, you will need to wait for a kernel update that fixes existing bugs but your particular hardware may be less compatible with Linux.
bezat
Level 1
Level 1
Posts: 11
Joined: Tue Aug 23, 2022 10:53 pm

Re: HP Victus new Vanessa installation backlight not working

Post by bezat »

Thanks roblm. I tried these workarounds under the hybrid graphics option. Adding the nvidia_wmi_ec_backlight module to the /etc/modules file loaded this module. However, even with the module loaded the backlight control continued to behave as before. With the amdgpu.backlight = 1 option in grub the laptop boots bright, without this option it boots dim, but in either case there was no control over the setting. Suspend/resume cycles did not change this behavior.

I also went ahead and tried the setpci method, both in hybrid graphics (nvidia on demand) and iGPU only (AMD power saving) modes. Retrieving the busID and then using it to set the brightness, as described in the link https://easylinuxtipsproject.blogspot.c ... html#ID4.3, executed all commands fine it seemed but did not actually alter the physical brightness of the screen from the value it booted up in. It just seems that, once booted, control over the brightness of the actual screen is not there. I suppose that is a driver issue.

The links were both informative, thanks for these references. I guess I'll wait on a kernel update.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: HP Victus new Vanessa installation backlight not working

Post by roblm »

I just remembered one other method you can try. Change this line in the grub file:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
To this:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=! \"acpi_osi=Windows 2015\""
Then update grub and reboot.

If that doesn’t help, then try changing 2015 to 2012, and then try 2009.

What that does is enable the OS to report it is Windows instead of Linux. On some laptops, the BIOS checks to see if Windows is installed. If not, then some laptop functions may be disabled or not work well.
OldGuy69
Level 1
Level 1
Posts: 8
Joined: Sun Feb 28, 2016 1:42 pm

Re: HP Victus new Vanessa installation backlight not working

Post by OldGuy69 »

I tried the changes with no luck. One set of symptoms I haven't seen discussed is the Power Management battery settings. The display doesn't dim or go to sleep under battery power. It's probably just another set of related symptoms.
bezat
Level 1
Level 1
Posts: 11
Joined: Tue Aug 23, 2022 10:53 pm

Re: HP Victus new Vanessa installation backlight not working

Post by bezat »

Hi roblm,

Thanks, I saw some references to this suggestion but have not tried it earlier. I edited the grub as suggested, but it caused my boot up sequence to hang after the grub menu was displayed. At the point where the LM logo normally comes on the screen stayed dark. I waited for at least a minute when usually the boot up to the login screen sequence is completed within about 10 seconds. So I just rebooted, adjusted the grub on the reboot, and then once the boot completed I set the grub back to original setting. There was what looked like possibly a relevant update this week, "xserver-xorg-video-amdgpu" was updated to version 22.0.0-1ubuntu0.1, but after installing it the brightness behavior is same as before. Laptop is still running the nvidia 510 driver, though now it is on AMD power saving mode, not hybrid. In any case, the actual brightness does not respond to function key input even though the "brightness" and "actual_brightness" files in /sys/class/backlight/amdgpu_bl0/ folder update with what looks like a correct numeric value representing the brightness setting (that is, values in the files go from minimum of 4 to max of 255 as I adjust it with the function keys up and down).

To OldGuy69, my laptop does go into sleep mode now when on battery, or even if plugged in. Originally I recall it just stayed on full all the time, but with the configuration now the power saving mode seems to transition to sleep OK. The remaining issues for me are that the brightness of the laptop screen cannot be adjusted, it is either bright or very dim depending on whether grub has amdgpu.backlight=1 or not (i.e. screen is bright if grub has GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.backlight=1"). Also, have not checked recently but suspect the HDMI output is still not working...but would have to confirm that. Work around through USB-C has been fine.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: HP Victus new Vanessa installation backlight not working

Post by roblm »

You could test the 5.19 kernel by using the Ubuntu Mainline Kernel Installer:
https://github.com/bkw777/mainline

Code: Select all

sudo add-apt-repository ppa:cappelikan/ppa
apt update
apt install mainline
Then open the Ubuntu Mainline Kernel Installer from the Menu > Administration and install the 5.19 kernel.
User avatar
SMG
Level 25
Level 25
Posts: 31972
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: HP Victus new Vanessa installation backlight not working

Post by SMG »

Just as an FYI, in this topic Screen Brightness the user with a AMD Ryzen 5 5500U with Radeon Graphics said they were able to change backlight when using Manjaro, but it was not working in Linux Mint. When I asked what kernel they were using in Manjaro, they said, "the latest stable i think" so a newer one may work for you, but I don't know which one that might be because I do not have a Manjaro install.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
hglee
Level 6
Level 6
Posts: 1422
Joined: Fri Jun 22, 2018 4:31 pm

Re: HP Victus new Vanessa installation backlight not working

Post by hglee »

SMG wrote: Sun Sep 18, 2022 12:07 pm Just as an FYI, in this topic Screen Brightness the user with a AMD Ryzen 5 5500U with Radeon Graphics said they were able to change backlight when using Manjaro, but it was not working in Linux Mint. When I asked what kernel they were using in Manjaro, they said, "the latest stable i think" so a newer one may work for you, but I don't know which one that might be because I do not have a Manjaro install.

Downloaded and installed today, Manjaro 21.3.7 MATE comes with kernel 5.15.60, then updates to 5.15.65.

Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
User avatar
SMG
Level 25
Level 25
Posts: 31972
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: HP Victus new Vanessa installation backlight not working

Post by SMG »

hglee wrote: Sun Sep 18, 2022 12:59 pmDownloaded and installed today, Manjaro 21.3.7 MATE comes with kernel 5.15.60, then updates to 5.15.65.
Thanks for the info. OP here has already tried 5.19.0-4.1-liquorix-amd64 and 5.17-oem so "the Manjaro kernel" looks like it is probably not a solution.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
bezat
Level 1
Level 1
Posts: 11
Joined: Tue Aug 23, 2022 10:53 pm

Re: HP Victus new Vanessa installation backlight not working

Post by bezat »

Hi all, appreciate the continued suggestions. I installed the latest 5.19.5 kernel, and tested it with the NVIDIA 510 driver either set to AMD (power saving mode) or NVIDIA (Performance Mode) to see if either made a difference. In both cases ls /sys/class/backlight/ shows just an amdgpu_bl0 folder, so I suspect the laptop is trying to control the screen brightness with the amdgpu driver regardless of what mode is set. No folder appeared when the NVIDIA (performance mode) was selected that would be associated to nvidia. So I suppose that amdgpu is the only driver for communicating with the screen on this machine.

Even with latest kernel, the brightness issue remains as before, that is, no actual control over the physical brightness. Whatever the issue is with the amdgpu driver and my particular hardware, its resolution so far does not appear to have made it into the kernel. Here is the inxi output in case it helps anyone also trying to track this down

Code: Select all

System:
  Kernel: 5.19.5-051905-generic x86_64 bits: 64 compiler: N/A
    Desktop: Cinnamon 5.4.12 tk: GTK 3.24.33 wm: Mutter vt: 7
    dm: LightDM 1.30.0 Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: HP product: Victus by HP Gaming Laptop 15-fb0xxx
    v: N/A serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 8A3E v: 35.24 serial: <superuser required> UEFI: AMI
    v: F.03 date: 04/15/2022
Battery:
  ID-1: BAT0 charge: 51.4 Wh (99.4%) condition: 51.7/51.7 Wh (100.0%)
    volts: 13.1 min: 11.6 model: HP Primary type: Li-ion serial: <filter>
    status: Not charging cycles: 14
CPU:
  Info: 6-core model: AMD Ryzen 5 5600H with Radeon Graphics bits: 64
    type: MT MCP smt: enabled arch: Zen 3 rev: 0 cache: L1: 384 KiB L2: 3 MiB
    L3: 16 MiB
  Speed (MHz): avg: 1187 high: 2855 min/max: 400/4280 boost: enabled cores:
    1: 400 2: 400 3: 2013 4: 2349 5: 400 6: 400 7: 400 8: 400 9: 2084 10: 2149
    11: 2855 12: 400 bogomips: 79052
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q]
    vendor: Hewlett-Packard driver: nvidia v: 510.85.02 pcie: speed: 2.5 GT/s
    lanes: 8 ports: active: none empty: HDMI-A-1 bus-ID: 01:00.0
    chip-ID: 10de:1f9d class-ID: 0300
  Device-2: AMD Cezanne vendor: Hewlett-Packard driver: amdgpu v: kernel
    pcie: speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1
    bus-ID: 06:00.0 chip-ID: 1002:1638 class-ID: 0300
  Device-3: Luxvisions Innotech HP Wide Vision HD Camera type: USB
    driver: uvcvideo bus-ID: 1-3:2 chip-ID: 30c9:0069 class-ID: fe01
    serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.3 driver: X:
    loaded: amdgpu,ati,nvidia unloaded: fbdev,modesetting,nouveau,vesa
    gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 102 s-size: 480x270mm (18.9x10.6")
    s-diag: 551mm (21.7")
  Monitor-1: eDP-1-0 mapped: eDP-1 model: BOE Display res: 1920x1080
    hz: 144 dpi: 142 size: 344x194mm (13.5x7.6") diag: 395mm (15.5") modes:
    max: 1920x1080 min: 640x480
  OpenGL: renderer: NVIDIA GeForce GTX 1650/PCIe/SSE2
    v: 4.6.0 NVIDIA 510.85.02 direct render: Yes
Audio:
  Device-1: NVIDIA vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    pcie: speed: 8 GT/s lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:10fa
    class-ID: 0403
  Device-2: AMD Renoir Radeon High Definition Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 06:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-3: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    vendor: Hewlett-Packard driver: snd_rn_pci_acp3x v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 06:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-4: AMD Family 17h HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 06:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k5.19.5-051905-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: MEDIATEK vendor: Foxconn driver: mt7921e v: kernel pcie:
    speed: 5 GT/s lanes: 1 port: N/A bus-ID: 03:00.0 chip-ID: 14c3:0616
    class-ID: 0280
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Foxconn / Hon Hai Wireless_Device type: USB driver: btusb v: 0.8
    bus-ID: 1-4:3 chip-ID: 0489:e0e0 class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 476.94 GiB used: 132.98 GiB (27.9%)
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: PC711 HFS512GDE9X073N
    size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: HPS0 temp: 38.9 C scheme: GPT
Partition:
  ID-1: / size: 467.89 GiB used: 132.97 GiB (28.4%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 5.2 MiB (1.0%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 56.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 0 fan-2: 0
  GPU: device: nvidia screen: :0.0 temp: 54 C device: amdgpu temp: 55.0 C
Repos:
  Packages: apt: 2724
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/amdgpu-proprietary.list
  Active apt repos in: /etc/apt/sources.list.d/amdgpu.list
    1: deb https://repo.radeon.com/amdgpu/22.20/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/cappelikan-ppa-jammy.list
    1: deb http://ppa.launchpad.net/cappelikan/ppa/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
    1: deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/home:hpcoder1.list
    1: deb http://download.opensuse.org/repositories/home:/hpcoder1/xUbuntu_22.04/ /
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://packages.linuxmint.com vanessa main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/rocm.list
    1: deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.2 ubuntu main
Info:
  Processes: 313 Uptime: 20m wakeups: 10977 Memory: 7.11 GiB
  used: 1.78 GiB (25.1%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.2.0 alt: 11 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13
Even though the issue may not have been solved, I feel I learned a lot from the suggestions and references - so thanks!
User avatar
SMG
Level 25
Level 25
Posts: 31972
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: HP Victus new Vanessa installation backlight not working

Post by SMG »

SMG wrote: Sun Sep 18, 2022 12:07 pm Just as an FYI, in this topic Screen Brightness the user with a AMD Ryzen 5 5500U with Radeon Graphics said they were able to change backlight when using Manjaro, but it was not working in Linux Mint. When I asked what kernel they were using in Manjaro, they said, "the latest stable i think" so a newer one may work for you, but I don't know which one that might be because I do not have a Manjaro install.
This person just reported the just-released 5.15.0-48 fixed their issue. There are quite a few amdgpu and drm brightness fixes mentioned in its changelog. I do not know if it might help you or what fixes (if any) there might be for the 5.17-oem kernel.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
OmniZephyrus
Level 1
Level 1
Posts: 2
Joined: Tue Dec 06, 2022 3:36 am

Re: HP Victus new Vanessa installation backlight not working

Post by OmniZephyrus »

My friend really wants to install linux on the same laptop and is having the same issue.

Any luck with the new latest drivers that just came out? I have tried all the fixes and workarounds possibly anywhere for this issue and have not managed to assist him, if anything comes up please contact me!
User avatar
SMG
Level 25
Level 25
Posts: 31972
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: HP Victus new Vanessa installation backlight not working

Post by SMG »

OmniZephyrus wrote: Tue Dec 06, 2022 3:39 amI have tried all the fixes and workarounds possibly anywhere for this issue and have not managed to assist him, if anything comes up please contact me!
Welcome to the forum, OmniZephyrus.
Have you tried the 6.0-oem kernel? You can install the latest 6.0-oem kernel with

Code: Select all

sudo apt-get install linux-oem-22.04b
and reboot.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
OmniZephyrus
Level 1
Level 1
Posts: 2
Joined: Tue Dec 06, 2022 3:36 am

Re: HP Victus new Vanessa installation backlight not working

Post by OmniZephyrus »

We live booted both mint and did that then tried garuda to make sure the absolute latest kernels and none worked sadly, my friend is getting really sick of windows spyware at this point and really wants to move, but cant because of this
User avatar
SMG
Level 25
Level 25
Posts: 31972
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: HP Victus new Vanessa installation backlight not working

Post by SMG »

OmniZephyrus wrote: Sun Feb 12, 2023 5:59 pm We live booted both mint
You can not change a kernel on a live boot. The kernel loads at boot time and you can not reboot a live session. You can only reboot an installed version.

Also, since your last post, a 6.1-oem kernel became available which can be installed with sudo apt-get install linux-oem-22.04c (last letter changed).

I do not know if there might be newer AMD firmware available which might help. If you want to pursue that, please make your own topic on the issue and install Linux Mint. If your friend does not want to dual-boot to test, here is an option to consider Full Install to USB Drive: Four Options.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Graphics Cards & Monitors”