Автор Тема: brightness problem p9.1 simplylinux  (Прочитано 8198 раз)

Оффлайн Δημητριος

  • Давно тут
  • **
  • Сообщений: 314
brightness problem p9.1 simplylinux
« : 08.06.2021 18:25:17 »
Hello i have a little problem , brightness on laptop not work,

according to the following I tried to create an archive in the file /usr/share/X11/xorg.conf.d/ with this name 20-intel.conf and in the file I wrote this
Section "Device"
        Identifier  "card1"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection
but not working , what am I doing wrong ? how should I write it???
find /sys -type f -name brightness
/sys/devices/platform/i8042/serio0/input/input0/input0::scrolllock/brightness
/sys/devices/platform/i8042/serio0/input/input0/input0::capslock/brightness
/sys/devices/platform/i8042/serio0/input/input0/input0::numlock/brightness
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/backlight/acpi_video0/brightness
/sys/devices/pci0000:00/0000:00:1b.0/hdaudioC0D0/leds/hda::mute/brightness
/sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video1/brightness
/sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-LVDS-1/intel_backlight/brightness

ls /sys/class/backlight/
acpi_video0  acpi_video1  intel_backlight



thanks   

Оффлайн Δημητριος

  • Давно тут
  • **
  • Сообщений: 314
Re: brightness problem p9.1 simplylinux
« Ответ #1 : 10.06.2021 18:43:08 »
hello again
I noticed something I think is not right, and may be the reason why the brightness does not work, with this command  in terminal he show me three cards


ls /sys/class/backlight/
acpi_video0  acpi_video1  intel_backlight

but
with this  command it shows me I have two graphic cards
grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6730M/6770M/7690M XT]

if you look at the following images,you will see that the graphics card is read incorrectly by acpi.....
probably here is the cause ,where the brightness does not work....
Can we fix that ???
« Последнее редактирование: 10.06.2021 18:51:40 от Δημητριος »

Оффлайн gosts 87

  • Завсегдатай
  • *
  • Сообщений: 2 957
  • Дмитрий/Dmitry/德米特里/दिमित्री
Re: brightness problem p9.1 simplylinux
« Ответ #2 : 10.06.2021 19:52:35 »
if you look at the following images,you will see that the graphics card is read incorrectly by acpi.....
probably here is the cause ,where the brightness does not work....
Can we fix that
Show
dmesg | grep ACPI

Оффлайн Δημητριος

  • Давно тут
  • **
  • Сообщений: 314
Re: brightness problem p9.1 simplylinux
« Ответ #3 : 10.06.2021 20:27:26 »
if you look at the following images,you will see that the graphics card is read incorrectly by acpi.....
probably here is the cause ,where the brightness does not work....
Can we fix that
Show
dmesg | grep ACPI

dmesg | grep ACPI
[    0.000000] BIOS-e820: [mem 0x000000009cebf000-0x000000009cfbefff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000009cfbf000-0x000000009cffefff] ACPI data
[    0.014203] ACPI: Early table checksum verification disabled
[    0.014206] ACPI: RSDP 0x00000000000FE020 000024 (v02 HPQOEM)
[    0.014211] ACPI: XSDT 0x000000009CFFE120 00009C (v01 HPQOEM SLIC-MPC 00000001      01000013)
[    0.014217] ACPI: FACP 0x000000009CFFC000 0000F4 (v04 HPQOEM SLIC-MPC 00000001 MSFT 01000013)
[    0.014223] ACPI: DSDT 0x000000009CFEC000 00C553 (v01 HP     INSYDE   00000000 MSFT 01000013)
[    0.014227] ACPI: FACS 0x000000009CF6C000 000040
[    0.014230] ACPI: FACS 0x000000009CF6C000 000040
[    0.014233] ACPI: ASF! 0x000000009CFFD000 0000A5 (v32 HP     INSYDE   00000001 MSFT 01000013)
[    0.014237] ACPI: HPET 0x000000009CFFB000 000038 (v01 HP     INSYDE   00000001 MSFT 01000013)
[    0.014241] ACPI: APIC 0x000000009CFFA000 00008C (v02 HP     INSYDE   00000001 MSFT 01000013)
[    0.014245] ACPI: MCFG 0x000000009CFF9000 00003C (v01 HP     INSYDE   00000001 MSFT 01000013)
[    0.014248] ACPI: SLIC 0x000000009CFEB000 000176 (v01 HPQOEM SLIC-MPC 00000001 MSFT 01000013)
[    0.014252] ACPI: SSDT 0x000000009CFEA000 00051F (v01 HP     INSYDE   00001000 MSFT 01000013)
[    0.014256] ACPI: BOOT 0x000000009CFE8000 000028 (v01 HP     INSYDE   00000001 MSFT 01000013)
[    0.014259] ACPI: ASPT 0x000000009CFE5000 000034 (v07 HP     INSYDE   00000001 MSFT 01000013)
[    0.014263] ACPI: SSDT 0x000000009CFE4000 0007C2 (v01 HP     INSYDE   00003000 INTL 20100806)
[    0.014267] ACPI: SSDT 0x000000009CFE3000 000996 (v01 HP     INSYDE   00003000 INTL 20100806)
[    0.014270] ACPI: SSDT 0x000000009CFE2000 0002DA (v01 HP     INSYDE   00003000 INTL 20100806)
[    0.014274] ACPI: SSDT 0x000000009CFE1000 00035D (v01 HP     INSYDE   00003000 INTL 20100806)
[    0.014277] ACPI: DMAR 0x000000009CFE0000 0000E8 (v01 HP     INSYDE   00000001 INTL 00000001)
[    0.014281] ACPI: SSDT 0x000000009CFDA000 0024A1 (v01 HP     INSYDE   00001000 INTL 20100806)
[    0.014285] ACPI: Reserving FACP table memory at [mem 0x9cffc000-0x9cffc0f3]
[    0.014286] ACPI: Reserving DSDT table memory at [mem 0x9cfec000-0x9cff8552]
[    0.014287] ACPI: Reserving FACS table memory at [mem 0x9cf6c000-0x9cf6c03f]
[    0.014288] ACPI: Reserving FACS table memory at [mem 0x9cf6c000-0x9cf6c03f]
[    0.014289] ACPI: Reserving ASF! table memory at [mem 0x9cffd000-0x9cffd0a4]
[    0.014290] ACPI: Reserving HPET table memory at [mem 0x9cffb000-0x9cffb037]
[    0.014291] ACPI: Reserving APIC table memory at [mem 0x9cffa000-0x9cffa08b]
[    0.014292] ACPI: Reserving MCFG table memory at [mem 0x9cff9000-0x9cff903b]
[    0.014293] ACPI: Reserving SLIC table memory at [mem 0x9cfeb000-0x9cfeb175]
[    0.014294] ACPI: Reserving SSDT table memory at [mem 0x9cfea000-0x9cfea51e]
[    0.014295] ACPI: Reserving BOOT table memory at [mem 0x9cfe8000-0x9cfe8027]
[    0.014296] ACPI: Reserving ASPT table memory at [mem 0x9cfe5000-0x9cfe5033]
[    0.014297] ACPI: Reserving SSDT table memory at [mem 0x9cfe4000-0x9cfe47c1]
[    0.014298] ACPI: Reserving SSDT table memory at [mem 0x9cfe3000-0x9cfe3995]
[    0.014299] ACPI: Reserving SSDT table memory at [mem 0x9cfe2000-0x9cfe22d9]
[    0.014300] ACPI: Reserving SSDT table memory at [mem 0x9cfe1000-0x9cfe135c]
[    0.014301] ACPI: Reserving DMAR table memory at [mem 0x9cfe0000-0x9cfe00e7]
[    0.014302] ACPI: Reserving SSDT table memory at [mem 0x9cfda000-0x9cfdc4a0]
[    0.014313] ACPI: Local APIC address 0xfee00000
[    0.029792] ACPI: PM-Timer IO Port: 0x408
[    0.029793] ACPI: Local APIC address 0xfee00000
[    0.029813] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.029814] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.029816] ACPI: IRQ0 used by override.
[    0.029817] ACPI: IRQ9 used by override.
[    0.029819] Using ACPI (MADT) for SMP configuration information
[    0.029821] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[    0.084907] ACPI: Core revision 20200925
[    0.102325] PM: Registering ACPI NVS region [mem 0x9cebf000-0x9cfbefff] (1048576 bytes)
[    0.103088] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
[    0.103090] ACPI: bus type PCI registered
[    0.103091] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.105139] ACPI: Added _OSI(Module Device)
[    0.105141] ACPI: Added _OSI(Processor Device)
[    0.105142] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.105143] ACPI: Added _OSI(Processor Aggregator Device)
[    0.105144] ACPI: Added _OSI(Linux-Dell-Video)
[    0.105145] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.105146] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    0.115083] ACPI: 7 ACPI AML tables successfully acquired and loaded
[    0.116329] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    0.116819] ACPI: Dynamic OEM Table Load:
[    0.116827] ACPI: SSDT 0xFFFF88810112F800 000727 (v01 PmRef  Cpu0Cst  00003001 INTL 20100806)
[    0.117603] ACPI: Dynamic OEM Table Load:
[    0.117609] ACPI: SSDT 0xFFFF8881012D3C00 000303 (v01 PmRef  ApIst    00003000 INTL 20100806)
[    0.118221] ACPI: Dynamic OEM Table Load:
[    0.118226] ACPI: SSDT 0xFFFF88810128F800 000119 (v01 PmRef  ApCst    00003000 INTL 20100806)
[    0.120031] ACPI: EC: EC started
[    0.120032] ACPI: EC: interrupt blocked
[    0.122536] ACPI: EC: EC_CMD/EC_SC=0x66, EC_DATA=0x62
[    0.122539] ACPI: \_SB_.PCI0.LPCB.EC__: Boot DSDT EC used to handle transactions
[    0.122540] ACPI: Interpreter enabled
[    0.122562] ACPI: (supports S0 S3 S4 S5)
[    0.122563] ACPI: Using IOAPIC for interrupt routing
[    0.122591] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.122791] ACPI: Enabled 9 GPEs in block 00 to 3F
[    0.124463] acpi ABCDEFGH:00: ACPI dock station (docks/bays count: 1)
[    0.134380] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-fe])
[    0.145695] ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 10 11 12 14 15) *7
[    0.145759] ACPI: PCI Interrupt Link [LNKB] (IRQs 1 *3 4 5 6 10 11 12 14 15)
[    0.145819] ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 *10 11 12 14 15)
[    0.145879] ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 5 6 *10 11 12 14 15)
[    0.145938] ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 10 11 12 14 15) *0, disabled.
[    0.145999] ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 *4 5 6 10 11 12 14 15)
[    0.146058] ACPI: PCI Interrupt Link [LNKG] (IRQs 1 3 4 *5 6 10 11 12 14 15)
[    0.146121] ACPI: PCI Interrupt Link [LNKH] (IRQs 1 3 4 5 6 10 *11 12 14 15)
[    0.146998] ACPI: EC: interrupt unblocked
[    0.146999] ACPI: EC: event unblocked
[    0.147005] ACPI: EC: EC_CMD/EC_SC=0x66, EC_DATA=0x62
[    0.147006] ACPI: EC: GPE=0x17
[    0.147008] ACPI: \_SB_.PCI0.LPCB.EC__: Boot DSDT EC initialization complete
[    0.147009] ACPI: \_SB_.PCI0.LPCB.EC__: EC: Used to handle transactions and events
[    0.147256] PCI: Using ACPI for IRQ routing
[    0.168635] pnp: PnP ACPI init
[    0.168809] system 00:00: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.168834] pnp 00:01: Plug and Play ACPI device, IDs PNP0b00 (active)
[    0.168889] system 00:02: Plug and Play ACPI device, IDs INT3f0d PNP0c02 (active)
[    0.168936] pnp 00:03: Plug and Play ACPI device, IDs PNP0303 (active)
[    0.168979] pnp 00:04: Plug and Play ACPI device, IDs SYN1e47 SYN1e00 SYN0002 PNP0f13 (active)
[    0.169130] system 00:05: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.171430] system 00:06: Plug and Play ACPI device, IDs PNP0c01 (active)
[    0.171446] pnp: PnP ACPI: found 7 devices
[    2.257670] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[    2.258238] ACPI: Video Device [PEGP] (multi-head: yes  rom: no  post: no)
[    2.375478] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[  116.443113] ACPI: Lid Switch [LID]
[  116.452465] ACPI: Power Button [PWRB]
[  116.457292] ACPI: AC Adapter [AC] (on-line)
[  116.467401] ACPI: Power Button [PWRF]
[  116.530773] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000400-0x000000000000047F (\PMIO) (20200925/utaddress-213)
[  116.530782] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[  116.530786] ACPI Warning: SystemIO range 0x0000000000000540-0x000000000000054F conflicts with OpRegion 0x0000000000000500-0x000000000000055F (\_SB.PCI0.PEG0.PEGP.GPIO) (20200925/utaddress-213)
[  116.530791] ACPI Warning: SystemIO range 0x0000000000000540-0x000000000000054F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20200925/utaddress-213)
[  116.530796] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[  116.530798] ACPI Warning: SystemIO range 0x0000000000000530-0x000000000000053F conflicts with OpRegion 0x0000000000000500-0x000000000000055F (\_SB.PCI0.PEG0.PEGP.GPIO) (20200925/utaddress-213)
[  116.530803] ACPI Warning: SystemIO range 0x0000000000000530-0x000000000000053F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20200925/utaddress-213)
[  116.530808] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[  116.530810] ACPI Warning: SystemIO range 0x0000000000000500-0x000000000000052F conflicts with OpRegion 0x0000000000000500-0x000000000000055F (\_SB.PCI0.PEG0.PEGP.GPIO) (20200925/utaddress-213)
[  116.530814] ACPI Warning: SystemIO range 0x0000000000000500-0x000000000000052F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20200925/utaddress-213)
[  116.530819] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[  116.601549] ACPI: bus type USB registered
[  117.030211] ACPI: Thermal Zone [THRM] (52 C)
[  117.048391] battery: ACPI: Battery Slot [BAT0] (battery present)
[ 6033.832772] ACPI: EC: interrupt blocked
[ 6033.846104] ACPI: Preparing to enter system sleep state S3
[ 6033.848978] ACPI: EC: event blocked
[ 6033.848980] ACPI: EC: EC stopped
[ 6033.873763] ACPI: Low-level resume complete
[ 6033.873804] ACPI: EC: EC started
[ 6033.903007] ACPI: Waking up from system sleep state S3
[ 6033.904028] ACPI: button: The lid device is not compliant to SW_LID.
[ 6033.907095] ACPI: EC: interrupt unblocked
[ 6033.931389] ACPI: EC: event unblocked

Оффлайн gosts 87

  • Завсегдатай
  • *
  • Сообщений: 2 957
  • Дмитрий/Dmitry/德米特里/दिमित्री
Re: brightness problem p9.1 simplylinux
« Ответ #4 : 10.06.2021 20:52:00 »
I did not notice anything strange, except for errors that occur in almost any log...

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: brightness problem p9.1 simplylinux
« Ответ #5 : 11.06.2021 10:12:16 »
Xfce Power Manager
Power manager settings
General
$ LC_ALL=C xfce4-power-manager -c

Line: Handle display brightness keys

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
« Последнее редактирование: 11.06.2021 11:08:13 от Speccyfighter »

Оффлайн Δημητριος

  • Давно тут
  • **
  • Сообщений: 314
Re: brightness problem p9.1 simplylinux
« Ответ #7 : 11.06.2021 12:03:25 »
Xfce Power Manager
Power manager settings
General
$ LC_ALL=C xfce4-power-manager -c

Line: Handle display brightness keys
well i running this command and show this look (image) !!! should I do something here??

Change brightness by user:
https://forum.altlinux.org/index.php?topic=35895.msg271703#msg271703
https://forum.altlinux.org/index.php?topic=33296.msg238303#msg238303
https://forum.altlinux.org/index.php?topic=35895.msg271710#msg271710

Change brightness by root:
https://forum.altlinux.org/index.php?topic=33106.msg251677#msg251677
yes this command work and changed the brightness manual
xrandr --output LVDS-1grep connected /var/log/Xorg.0.log|cut -f2 -d :
 Output LVDS-1 connected
 Output VGA-1 disconnected
 Output HDMI-1 disconnected
 Output DP-1 disconnected
xrandr --output LVDS-1  --brightness 0.87
 xrandr --output LVDS-1 --brightness 1.0
but i must doing every time???
« Последнее редактирование: 11.06.2021 12:21:29 от Δημητριος »

Оффлайн Δημητριος

  • Давно тут
  • **
  • Сообщений: 314
Re: brightness problem p9.1 simplylinux
« Ответ #8 : 11.06.2021 12:44:15 »
finally fixed, I don't know why what system is showing me the card in the wrong position
...
at first I wrote the file like this
code]Section "Device"
        Identifier  "card1"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection
because that's how he showed it to me in the terminal  :-o
/sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-LVDS-1/intel_backlight/brightness[/code]
and lightdm not start , login not running ....
now I wrote it like this
Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection
and everything looks good  :-o

one more thing why can't I use the amd card for brightness ????
« Последнее редактирование: 11.06.2021 12:46:05 от Δημητριος »

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: brightness problem p9.1 simplylinux
« Ответ #9 : 11.06.2021 14:20:42 »
yes this command work and changed the brightness manual
xrandr --output LVDS-1grep connected /var/log/Xorg.0.log|cut -f2 -d :
 Output LVDS-1 connected
 Output VGA-1 disconnected
 Output HDMI-1 disconnected
 Output DP-1 disconnected
xrandr --output LVDS-1  --brightness 0.87
 xrandr --output LVDS-1 --brightness 1.0
but i must doing every time???

This can be hung on the keys Win + 1, Win + 2, Win + 3, ..., Win + 0 (screenshot): Super + 1, this is the Win key and the 1 key.

Start
Keyboard=>Application Shortcuts
$ LC_ALL=C xfce4-keyboard-settings

Bind commands to hotkeys Win + 1, Win + 2, Win + 3, ..., Win + 0.
(see screenshot)

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: brightness problem p9.1 simplylinux
« Ответ #10 : 11.06.2021 14:34:11 »
now I wrote it like this
Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection
and everything looks good  :-o

one more thing why can't I use the amd card for brightness ????

Neither the radeon driver nor the modesetting driver has a Backlight option:
$ man intel | grep -i backlight
       Option "Backlight" "string"
              Override  the  probed backlight control interface. Sometimes the
              automatically selected backlight interface may not correspond to
              the entry under /sys/class/backlight to use.
       BACKLIGHT - current backlight level (adjustable)
              By  adjusting the BACKLIGHT property, the brightness on the LVDS
              microcontroller to control the backlight).
$ man radeon | grep -i backlight | wc -l
0
$ man modesetting | grep -i backlight | wc -l
0

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: brightness problem p9.1 simplylinux
« Ответ #11 : 11.06.2021 15:03:12 »
find /sys -type f -name brightness
...
/sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-LVDS-1/intel_backlight/brightness
Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection
and everything looks good  :-o

With this Intel graphics setting, commands will work that add and decrease brightness by 10 percent and which can be hung on hot keys, for example Win + 1 Win + 2:
xbacklight +10
xbacklight -10

Hot keys:
Settings=>Keyboard=>Application Shortcuts

Оффлайн Δημητριος

  • Давно тут
  • **
  • Сообщений: 314
Re: brightness problem p9.1 simplylinux
« Ответ #12 : 11.06.2021 18:21:09 »
Спасибо проблема решена

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: brightness problem p9.1 simplylinux
« Ответ #13 : 11.06.2021 20:57:49 »
Спасибо проблема решена

Excellent Δημητριος.
You helped to find the bug with this topic:
xbacklight failure on Intel graphics
$ xbacklight -10
No outputs have backlight property

It remains to decide what to hang it on, on xbacklight or on the X-server.


Отлично Δημητριος.
Этой темой вы помогли найти bug:
Отказ xbacklight на графике Intel
$ xbacklight -10
No outputs have backlight property

Осталось решить на что его вешать, на xbacklight или на X-сервер.


Direct brightness control does not work
Не работает прямое управление яркостью
# lspci -nn | grep VGA | cut -f1 -d ' '; setpci -s 00:02.0 F4.B=FF

Оффлайн Δημητριος

  • Давно тут
  • **
  • Сообщений: 314
Re: brightness problem p9.1 simplylinux
« Ответ #14 : 12.06.2021 11:21:00 »
Я рад, что хоть в чем-то помог.

I'm glad I helped with something even a little bit.