> Date: Fri, 16 Aug 2019 22:21:33 +0200 (CEST)
> From: Mark Kettenis <[email protected]>
>
> cpu0: AMD A4-4355M APU with Radeon(tm) HD Graphics, 1897.56 MHz, 15-10-01
>
> ... I'd like to see some more tests, especially on laptops with
> amdgpu(4). Diff has some debug printing enabled. Feel free to
> share the dmesg output with me.
I have an older HP ProBook 645 G1 with "ATI Radeon HD 7520G", never used
with OpenBSD due to missing brightness and keys. After this message, I
found some time over Xmas to give it a shot. I hope it is ok to answer
late to the original post.
I couldn't fix the brightness control... If there is a hint were to look
at, I'd want to dig deeper.
The original (release) dmesg is here:
https://dmesgd.nycbug.org/index.cgi?do=view&id=5260
"Current" dmesg at the end of this mail.
My observations with 6.6 is indifferent xbacklight response, same with
"release" and "current". Before actually starting OpenBSD, still at the
boot prompt, display brightness can be changed with FN-F9 and FN-F10
keys. Once kernel is booted, no function on these keys. Immedeatly after
login into xenodm, and starting xterm, xbacklight behaves like this:
$ xbacklight
No outputs have backlight property
$ xrandr --query
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 16384 x 16384
DisplayPort-0 disconnected primary (normal left inverted right x axis y
axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
eDP connected 1366x768+0+0 (normal left inverted right x axis y axis)
309mm x 174mm
1366x768 60.00*+ 40.00
...
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
DisplayPort-3 disconnected (normal left inverted right x axis y axis)
Changing brightness via XRANDR works:
$ xrandr --output eDP --brightness 0.1
$ xrandr --output eDP --brightness 0.2
$ xrandr --output eDP --brightness 0.9
$ xrandr --output eDP --brightness 1
$ xbacklight
No outputs have backlight property
$ xbacklight -get
No outputs have backlight property
$ xrandr --output eDP --set BACKLIGHT 50
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 11 (RRQueryOutputProperty)
Serial number of failed request: 39
Current serial number in output stream: 39
$ xbacklight -get
--> after a wrong command to xrandr, the xbacklight device doesn't throw
an error anymore...
Going to current:
=================
After install snapshot and cvs updates, there is still no keyboard
control over brightness. Observations with xrandr and xbacklight remain
as above... I added the printf DEBUG statements and recompiled - in the
dmesg below.
I understand the radeon card is a "Trinity" APU, based on the
architecture of the Radeon HD 6900 series, without dedicated graphics
memory.
System infos:
=============
I dropped acpi dump here:
https://ln2.sync.com/dl/70a7ed070/39miqvjy-dudpu4u6-8duhf4fv-4ca9kz5y
I do not see a display.brightness control:
$ wsconsctl -a
keyboard.type=pc-xt
keyboard.bell.pitch=400
keyboard.bell.period=100
keyboard.bell.volume=50
keyboard.bell.pitch.default=400
keyboard.bell.period.default=100
keyboard.bell.volume.default=50
keyboard.repeat.del1=400
keyboard.repeat.deln=100
keyboard.repeat.del1.default=400
keyboard.repeat.deln.default=100
keyboard.ledstate=0
keyboard.encoding=de
mouse.type=ps2
mouse.reverse_scrolling=0
display.type=radeondrm
display.width=1366
display.height=768
display.depth=32
display.fontwidth=12
display.fontheight=24
display.emulations=vt100
display.screentypes=std
display.focus=4
display.screen_on=200
display.screen_off=0
display.vblank=off
display.kbdact=on
display.msact=on
display.outact=on
XEV:
====
PRESS FN-F9:
KeyPress event, serial 41, synthetic NO, window 0xa00001,
root 0x6ac, subw 0x0, time 10443245, (169,-11), root:(1176,38),
state 0x0, keycode 75 (keysym 0xffc6, F9), same_screen YES,
KeyRelease event, serial 41, synthetic NO, window 0xa00001,
root 0x6ac, subw 0x0, time 10443327, (169,-11), root:(1176,38),
state 0x0, keycode 75 (keysym 0xffc6, F9), same_screen YES,
PRESS FN-F10:
KeyPress event, serial 41, synthetic NO, window 0xa00001,
root 0x6ac, subw 0x0, time 10444288, (169,-11), root:(1176,38),
state 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES,
KeyRelease event, serial 41, synthetic NO, window 0xa00001,
root 0x6ac, subw 0x0, time 10444380, (169,-11), root:(1176,38),
state 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES,
PRESS F9 (without FN-key):
KeyPress event, serial 41, synthetic NO, window 0xc00001,
root 0x6ac, subw 0x0, time 10638816, (168,-10), root:(1175,39),
state 0x0, keycode 146 (keysym 0xff66, Redo), same_screen YES,
KeyRelease event, serial 41, synthetic NO, window 0xc00001,
root 0x6ac, subw 0x0, time 10638888, (168,-10), root:(1175,39),
state 0x0, keycode 146 (keysym 0xff66, Redo), same_screen YES,
PRESS F10 (without FN-key):
KeyPress event, serial 41, synthetic NO, window 0xc00001,
root 0x6ac, subw 0x0, time 10639626, (168,-10), root:(1175,39),
state 0x0, keycode 151 (keysym 0x1005ff73, SunOpen), same_screen YES,
KeyRelease event, serial 41, synthetic NO, window 0xc00001,
root 0x6ac, subw 0x0, time 10639688, (168,-10), root:(1175,39),
state 0x0, keycode 151 (keysym 0x1005ff73, SunOpen), same_screen YES,
dmesg:
======
OpenBSD 6.6-current (GENERIC.MP) #4: Mon Dec 30 07:20:58 CET 2019
[email protected]:/sys/arch/amd64/compile/GENERIC.MP
real mem = 3416023040 (3257MB)
avail mem = 3300032512 (3147MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x8e882000 (27 entries)
bios0: vendor Hewlett-Packard version "L72 Ver. 01.21" date 09/16/2014
bios0: Hewlett-Packard HP ProBook 645 G1
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG TCPA SLIC FPDT BGRT SSDT SSDT SSDT
acpi0: wakeup devices PCI0(S4) PB4_(S5) NIC_(S5) PB5_(S5) PB9_(S5)
PB7_(S5) HDEF(S0) USB0(S3) USB1(S3) USB2(S3) USB4(S3) USB5(S3) USB7(S3)
USB8(S3) SPB0(S5) ECF0(S5)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD A6-4400M APU with Radeon(tm) HD Graphics, 2696.53 MHz, 15-10-01
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,CPCTR,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 1MB
64b/line 16-way L2 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application processor)
cpu1: AMD A6-4400M APU with Radeon(tm) HD Graphics, 2694.97 MHz, 15-10-01
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,CPCTR,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 1MB
64b/line 16-way L2 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu1: smt 1, core 0, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 21, 24 pins, remapped
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (GFX0)
acpiprt2 at acpi0: bus -1 (PEGP)
acpiprt3 at acpi0: bus 1 (PB4_)
acpiprt4 at acpi0: bus 2 (PB5_)
acpiprt5 at acpi0: bus -1 (PB9_)
acpiprt6 at acpi0: bus -1 (PB7_)
acpiprt7 at acpi0: bus -1 (SPB0)
acpiec0 at acpi0
acpicpu0 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
acpipwrres0 at acpi0: APPR, resource for HDEF
acpipwrres1 at acpi0: COMP, resource for COM1
acpipwrres2 at acpi0: LPP_, resource for LPT0
acpitz0 at acpi0: critical temperature is 128 degC
acpitz1 at acpi0: critical temperature is 128 degC
acpitz2 at acpi0: critical temperature is 128 degC
acpitz3 at acpi0: critical temperature is 128 degC
acpitz4 at acpi0: critical temperature is 128 degC
"HPQ6001" at acpi0 not configured
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
"SMB0001" at acpi0 not configured
acpicmos0 at acpi0
"PNP0A06" at acpi0 not configured
"SYN3009" at acpi0 not configured
"HPQ6007" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "Primary" serial 00110 2014/09/22 type
LIon oem "Hewlett-Packard"
acpiac0 at acpi0: AC unit offline
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: LID_
"PNP0C14" at acpi0 not configured
tpm0 at acpi0: GTPM, can't find address
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: LCD_
acpivideo1 at acpi0: DGFX
cpu0: 2696 MHz: speeds: 2700 2400 2000 1700 1400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 15/1xh Host" rev 0x00
radeondrm0 at pci0 dev 1 function 0 "ATI Radeon HD 7520G" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci0 dev 1 function 1 vendor "ATI", unknown product 0x9902
rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 "AMD AMD64 15/1xh PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G
(0x4c00), msi, address 34:64:a9:d0:c9:ba
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
ppb1 at pci0 dev 5 function 0 "AMD AMD64 15/1xh PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
rtsx0 at pci2 dev 0 function 0 "Realtek RTS5227 Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
xhci0 at pci0 dev 16 function 0 "AMD Bolton xHCI" rev 0x09: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev
3.00/1.00 addr 1
xhci1 at pci0 dev 16 function 1 "AMD Bolton xHCI" rev 0x09: msi, xHCI 1.0
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "AMD xHCI root hub" rev
3.00/1.00 addr 1
ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x40: msi, AHCI 1.3
ahci0: port 0: 3.0Gb/s
ahci0: port 1: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD10JPVT-22A, 01.0>
naa.50014ee602ccb9bf
sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
cd0 at scsibus1 targ 1 lun 0: <hp, DVDRW SU208FB, HH01> removable
ohci0 at pci0 dev 18 function 0 "AMD Hudson-2 USB" rev 0x11: apic 4 int
18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "AMD Hudson-2 USB2" rev 0x11: apic 4 int 17
usb2 at ehci0: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "AMD EHCI root hub" rev
2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "AMD Hudson-2 USB" rev 0x11: apic 4 int
18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "AMD Hudson-2 USB2" rev 0x11: apic 4 int 17
usb3 at ehci1: USB revision 2.0
uhub3 at usb3 configuration 1 interface 0 "AMD EHCI root hub" rev
2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x16: SMBus
disabled
azalia1 at pci0 dev 20 function 2 "AMD Hudson-2 HD Audio" rev 0x01: apic
4 int 16
azalia1: codecs: IDT/0x76e0
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11
ppb2 at pci0 dev 20 function 4 "AMD Hudson-2 PCI" rev 0x40
pci3 at ppb2 bus 6
ohci2 at pci0 dev 20 function 5 "AMD Hudson-2 USB" rev 0x11: apic 4 int
18, version 1.0, legacy support
pchb1 at pci0 dev 24 function 0 "AMD AMD64 15/1xh Link Cfg" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 15/1xh Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 15/1xh DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 15/1xh Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 15/1xh CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 15/1xh NB Power" rev 0x00
usb4 at ohci0: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "AMD OHCI root hub" rev
1.00/1.00 addr 1
usb5 at ohci1: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "AMD OHCI root hub" rev
1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb6 at ohci2: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "AMD OHCI root hub" rev
1.00/1.00 addr 1
efifb at mainbus0 not configured
uhub7 at uhub1 port 2 configuration 1 interface 0 "SMSC USB5534B" rev
3.00/50.00 addr 2
uhub8 at uhub1 port 4 configuration 1 interface 0 "SMSC USB2134B" rev
2.10/50.00 addr 3
uvideo0 at uhub2 port 5 configuration 1 interface 0 "SunplusIT INC. HP
HD Webcam" rev 2.00/1.08 addr 2
video0 at uvideo0
ugen0 at uhub4 port 3 "Broadcom Corp BCM20702A0" rev 2.00/1.12 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (d565d97c2ab5c510.a) swap on sd0b dump on sd0b
initializing kernel modesetting (ARUBA 0x1002:0x9990 0x103C:0x1992 0x00).
XXX notifications 0x000000f1 functions 0x0000c00f
radeondrm0: 1366x768, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
PCI dump
========
Domain /dev/pci0:
0:0:0: AMD AMD64 15/1xh Host
0:1:0: ATI Radeon HD 7520G
0:1:1: ATI unknown
0:4:0: AMD AMD64 15/1xh PCIE
0:5:0: AMD AMD64 15/1xh PCIE
0:16:0: AMD Bolton xHCI
0:16:1: AMD Bolton xHCI
0:17:0: AMD Hudson-2 SATA
0:18:0: AMD Hudson-2 USB
0:18:2: AMD Hudson-2 USB2
0:19:0: AMD Hudson-2 USB
0:19:2: AMD Hudson-2 USB2
0:20:0: AMD Hudson-2 SMBus
0:20:2: AMD Hudson-2 HD Audio
0:20:3: AMD Hudson-2 LPC
0:20:4: AMD Hudson-2 PCI
0:20:5: AMD Hudson-2 USB
0:24:0: AMD AMD64 15/1xh Link Cfg
0:24:1: AMD AMD64 15/1xh Address Map
0:24:2: AMD AMD64 15/1xh DRAM Cfg
0:24:3: AMD AMD64 15/1xh Misc Cfg
0:24:4: AMD AMD64 15/1xh CPU Power
0:24:5: AMD AMD64 15/1xh NB Power
1:0:0: Realtek 8168
2:0:0: Realtek RTS5227 Card Reader