Dedicated Laptop GPU not working and causing system freeze

Hi!

I have a laptop with a crappy iGPU and a slightly better one HD 6470M 1 GB. I can’t get this AMD gpu working in Manjaro and I’ve disabled it in the BIOS because it didn’t work and it was wreaking havoc on my system where my usb mouse would freeze randomly. EDIT: Already tried using PRIME but when trying with firefox it says :

radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 4
System:
  Kernel: 6.1.25-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=31a58677-bc40-4b47-8ce3-a98978666bca rw usbcore.autosuspend=-1
    quiet splash udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.4 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Packard Bell product: EasyNote LS11HR v: V1.11
    serial: <superuser required> Chassis: type: 10 v: 1.11
    serial: <superuser required>
  Mobo: Packard Bell model: SJV70_HR serial: <superuser required>
    BIOS: Packard Bell v: 1.11 date: 05/24/2011
Battery:
  ID-1: BAT0 charge: 4.1 Wh (100.0%) condition: 4.1/47.5 Wh (8.7%) volts: 12.1
    min: 10.8 model: SANYO Li_Ion_4000mA type: Li-ion serial: <filter>
    status: full
Memory:
  RAM: total: 7.62 GiB used: 2.05 GiB (26.9%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i3-2310M bits: 64 type: MT MCP arch: Sandy Bridge
    gen: core 2 level: v2 built: 2010-12 process: Intel 32nm family: 6
    model-id: 0x2A (42) stepping: 7 microcode: 0x2F
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 799 high: 800 min/max: 800/2100 scaling:
    driver: intel_cpufreq governor: schedutil cores: 1: 800 2: 798 3: 800 4: 798
    bogomips: 16766
  Flags: acpi aperfmperf apic arat arch_perfmon avx bts clflush cmov
    constant_tsc cpuid cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept est
    flexpriority flush_l1d fpu fxsr ht ibpb ibrs lahf_lm lm mca mce md_clear
    mmx monitor msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm
    pebs pge pln pni popcnt pse pse36 pti pts rdtscp rep_good sep ssbd sse
    sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc
    tsc_deadline_timer vme vmx vnmi vpid x2apic xsave xsaveopt xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed 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: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    vendor: Acer Incorporated ALI driver: i915 v: kernel arch: Gen-6
    code: Sandybridge process: Intel 32nm built: 2011 ports: active: LVDS-1
    empty: DP-1,HDMI-A-1,VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0116
    class-ID: 0300
  Device-2: AMD Seymour [Radeon HD 6400M/7400M Series]
    vendor: Acer Incorporated ALI driver: radeon v: kernel alternate: amdgpu
    arch: TeraScale-2 code: Evergreen process: TSMC 32-40nm built: 2009-15
    pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 2 speed: 5 GT/s
    bus-ID: 01:00.0 chip-ID: 1002:6760 class-ID: 0300 temp: 45.5 C
  Device-3: Suyin 1.3M HD WebCam type: USB driver: uvcvideo bus-ID: 1-1.3:3
    chip-ID: 064e:c21c class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.8 compositor: kwin_x11 driver: X:
    loaded: modesetting,radeon alternate: fbdev,vesa dri: crocus gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1600x900 s-dpi: 96 s-size: 423x238mm (16.65x9.37")
    s-diag: 485mm (19.11")
  Monitor-1: LVDS-1 model: AU Optronics 0x139e built: 2009 res: 1600x900
    hz: 60 dpi: 106 gamma: 1.2 size: 382x214mm (15.04x8.43") diag: 438mm (17.2")
    ratio: 16:9 modes: 1600x900
  API: OpenGL v: 3.3 Mesa 23.0.2 renderer: Mesa Intel HD Graphics 3000 (SNB
    GT2) direct-render: Yes
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
    chip-ID: 8086:1c20 class-ID: 0403
  API: ALSA v: k6.1.25-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.70 status: off with: wireplumber status: off
    tools: pw-cli,wpctl
  Server-3: PulseAudio v: 16.1 status: active tools: pacat,pactl
Network:
  Device-1: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet
    vendor: Acer Incorporated ALI driver: atl1c v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 02:00.0 chip-ID: 1969:1083
    class-ID: 0200
  IF: enp2s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros AR9271 802.11n type: USB driver: ath9k_htc
    bus-ID: 2-1.3:5 chip-ID: 0cf3:9271 class-ID: ff00 serial: <filter>
  IF: wlp0s29u1u3 state: up 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:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 525.39 GiB used: 21.77 GiB (4.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 830 Series
    size: 59.63 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 3B1Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: HGST (Hitachi) model: HTS545050A7E380
    size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: AH20 scheme: MBR
  Optical-1: /dev/sr0 vendor: ■■■■■■■■ model: DVD-RAM UJ8A0AS rev: 1.00
    dev-links: cdrom
  Features: speed: 24 multisession: yes audio: yes dvd: yes
    rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
  ID-1: / raw-size: 59.61 GiB size: 58.38 GiB (97.93%) used: 10.95 GiB (18.8%)
    fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: 31a58677-bc40-4b47-8ce3-a98978666bca
  ID-2: /home raw-size: 465.76 GiB size: 457.38 GiB (98.20%)
    used: 10.82 GiB (2.4%) fs: ext4 dev: /dev/sdb1 maj-min: 8:17 label: N/A
    uuid: 355cdc6e-b1d7-4254-bf57-9ef700aeb10c
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/sda2 maj-min: 8:2 size: 11.3 MiB fs: <superuser required>
    label: N/A uuid: N/A
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
  Device-1: 1-1.3:3 info: Suyin 1.3M HD WebCam type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 064e:c21c
    class-ID: 0e02 serial: <filter>
  Device-2: 1-1.4:4 info: Realtek RTS5138 Card Reader Controller
    type: Mass Storage driver: ums-realtek interfaces: 1 rev: 2.0 speed: 480 Mb/s
    power: 500mA chip-ID: 0bda:0138 class-ID: 0806 serial: <filter>
  Hub-3: 2-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
  Device-1: 2-1.1:3 info: BY Tech Usb Gaming Keyboard type: Keyboard,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 500mA
    chip-ID: 258a:0016 class-ID: 0300
  Device-2: 2-1.2:6 info: Microsoft SideWinder Mouse type: Mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 500mA
    chip-ID: 045e:0724 class-ID: 0301
  Device-3: 2-1.3:5 info: Qualcomm Atheros AR9271 802.11n type: Network
    driver: ath9k_htc interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0cf3:9271 class-ID: ff00 serial: <filter>
Sensors:
  System Temperatures: cpu: 60.0 C mobo: N/A gpu: radeon temp: 46.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 176 Uptime: 8m wakeups: 1 Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
  pkgs: 1099 libs: 318 tools: pamac Shell: Zsh v: 5.9 default: Bash v: 5.1.16
  running-in: konsole inxi: 3.3.26


Moderator edit: Fixed formatting

With it disabled in BIOS we cant see it.
Also … how did you configure/use it?

You likely need to turn it back on to see or do anything with it. That goes for help too.

Maybe provide this also:

mhwd -l -d

Likely you just didnt understand or activate PRIME.

Ok, I’ll re-enable it and post the result of the command!

Welcome to the forum! :wave:

Desperate cries for help and run-on sentences do not help us help you. Please review the following and edit your post accordingly.

When you find time to do that, please edit your first post to update the information rather than creating a new reply. That way, when helpful volunteers come across your thread, they will see it right away.

> PCI Device: /devices/pci0000:00/0000:00:01.0/0000:01:00.0 (0300:1002:6760)
  Display controller ATI Technologies Inc Seymour [Radeon HD 6400M/7400M Series]
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:        video-linux
   ATTACHED:    PCI
   VERSION:     2018.05.04
   INFO:        Standard open source drivers.
   PRIORITY:    2
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 0380 0302 
   VENDORIDS:   1002 8086 10de 



  > AVAILABLE:

   NAME:        video-linux
   ATTACHED:    PCI
   VERSION:     2018.05.04
   INFO:        Standard open source drivers.
   PRIORITY:    2
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 0380 0302 
   VENDORIDS:   1002 8086 10de 

   NAME:        video-modesetting
   ATTACHED:    PCI
   VERSION:     2020.01.13
   INFO:        X (dot) org modesetting video driver.
   PRIORITY:    1
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 
   VENDORIDS:   * 

   NAME:        video-vesa
   ATTACHED:    PCI
   VERSION:     2017.03.12
   INFO:        Xorg vesa video driver.
   PRIORITY:    0
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 
   VENDORIDS:   * 


--------------------------------------------------------------------------------
> PCI Device: /devices/pci0000:00/0000:00:02.0 (0300:8086:0116)
  Display controller Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:        video-linux
   ATTACHED:    PCI
   VERSION:     2018.05.04
   INFO:        Standard open source drivers.
   PRIORITY:    2
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 0380 0302 
   VENDORIDS:   1002 8086 10de 



  > AVAILABLE:

   NAME:        video-linux
   ATTACHED:    PCI
   VERSION:     2018.05.04
   INFO:        Standard open source drivers.
   PRIORITY:    2
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 0380 0302 
   VENDORIDS:   1002 8086 10de 

   NAME:        video-modesetting
   ATTACHED:    PCI
   VERSION:     2020.01.13
   INFO:        Xorg modesetting video driver.
   PRIORITY:    1
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 
   VENDORIDS:   * 

   NAME:        video-vesa
   ATTACHED:    PCI
   VERSION:     2017.03.12
   INFO:        X(dot)org vesa video driver.
   PRIORITY:    0
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 
   VENDORIDS:   * 


Warning: no configs for USB devices found!

Moderator edit: Fixed formatting

Mk. So from there … what do we get with

glxinfo | grep 'renderer string'
DRI_PRIME=1 glxinfo | grep 'renderer string'
OpenGL renderer string: Mesa Intel(R) HD Graphics 3000 (SNB GT2)
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0
radeon: Failed to allocate a buffer:
radeon:    size      : 4096 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 0

Oh I just looked up your card. Its pre-GCN architecture.
Its from circa 2009.
So … you definitely cant use amdgpu (modern open amd driver)
Supposedly PRIME can still work though (even if I am not sure it will provide a good experience)

What does xrandr see?

xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 2 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0xc0 cap: 0x0 crtcs: 4 outputs: 0 associated providers: 0 name:CAICOS @ pci:0000:01:00.0

So maybe

xrandr --setprovideroffloadsink 1 0

And try again

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  34 (RRSetProviderOffloadSink)
  Value in failed request:  0xc0
  Serial number of failed request:  16
  Current serial number in output stream:  17

Same bug here, lol … Can you see my post ? I have a solution, it is about kernel but i cant install that patch

I have a similar problem. Did you solve it? Actually, in kernel 5.15, sometimes the external display didn’t work either. after turning off and on the computer, the display came back. In kernel 6.1, there was no display on the external screen.