I wish to see how this notebook behaves under the Linux environment. I booted it from the SSD in the external USB 3.1 enclosure, where, according to pbear's tutorial, hybrid bios/uefi installation of LM 20.3 Xfce is present. Notebook has switchable graphics, Intel + AMD Radeon. In UEFI firmware switchable graphics is enabled. I wish to switch graphics from the Intel to the AMD Radeon. I followed SMG's tutorial, applied command
DRI_PRIME=1
but I cannot get AMD Radeon graphics to be the primary renderer.Output of
glxinfo -B
before terminal command DRI_PRIME=1
Code: Select all
~$ glxinfo -B
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Intel Open Source Technology Center (0x8086)
Device: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2) (0x166)
Version: 21.2.6
Accelerated: yes
Video memory: 1536MB
Unified memory: yes
Preferred profile: core (0x1)
Max core profile version: 4.2
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 21.2.6
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 3.0 Mesa 21.2.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 21.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
Output of
glxinfo -B
after terminal command DRI_PRIME=1
Code: Select all
~$ glxinfo -B
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Intel Open Source Technology Center (0x8086)
Device: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2) (0x166)
Version: 21.2.6
Accelerated: yes
Video memory: 1536MB
Unified memory: yes
Preferred profile: core (0x1)
Max core profile version: 4.2
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 21.2.6
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 3.0 Mesa 21.2.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 21.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
Regards, Jože
Verbose output of inxi:
Code: Select all
~$ inxi -v8 -z
System:
Kernel: 5.4.0-121-generic arch: x86_64 bits: 64 compiler: gcc v: 9.4.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.4.0-121-generic
root=UUID=6598930e-4475-4e79-b85f-88ba105ca86e ro
Desktop: Xfce v: 4.16.0 tk: Gtk v: 3.24.20 info: xfce4-panel wm: xfwm
v: 4.16.1 dm: LightDM v: 1.30.0 Distro: Linux Mint 20.3 Una
base: Ubuntu 20.04 focal
Machine:
Type: Laptop System: Hewlett-Packard product: HP ProBook 4540s
v: A1019D110B serial: <filter> Chassis: type: 10 serial: <filter>
Mobo: Hewlett-Packard model: 17F6 v: KBC Version 58.21 serial: <filter>
UEFI: Hewlett-Packard v: 68IRR Ver. F.67 date: 05/30/2018
Battery:
ID-1: BAT0 charge: 30.6 Wh (96.2%) condition: 31.8/31.8 Wh (100.0%)
volts: 12.2 min: 10.8 model: Hewlett-Packard Primary type: Li-ion
serial: <filter> status: N/A
Device-1: hidpp_battery_0 model: Logitech M510 serial: <filter>
charge: 55% (should be ignored) rechargeable: yes status: discharging
Memory:
RAM: total: 7.66 GiB used: 1.18 GiB (15.5%)
Array-1: capacity: 16 GiB slots: 2 EC: None max-module-size: 8 GiB
note: est.
Device-1: Bottom-Slot 1(top) type: DDR3 detail: synchronous size: 4 GiB
speed: 1600 MT/s volts: N/A width (bits): data: 64 total: 64
manufacturer: Kingston part-no: 99U5469-041.A00LF serial: <filter>
Device-2: Bottom-Slot 2(under) type: DDR3 detail: synchronous size: 4 GiB
speed: 1600 MT/s volts: N/A width (bits): data: 64 total: 64
manufacturer: Hynix/Hyundai part-no: HMT351S6CFR8C-PB serial: <filter>
PCI Slots:
Slot: 1 type: PCI bits: 32 status: available length: long volts: 3.3
bus-ID: N/A
CPU:
Info: model: Intel Core i5-3210M socket: U3E1 bits: 64 type: MT MCP
arch: Ivy Bridge gen: core 3 built: 2012-15 process: Intel 22nm family: 6
model-id: 0x3A (58) stepping: 9 microcode: 0x21
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: 1197 min/max: 1200/3100 base/boost: 2500/4000 scaling:
driver: intel_pstate governor: powersave volts: 1.2 V ext-clock: 100 MHz
cores: 1: 1197 2: 1197 3: 1197 4: 1197 bogomips: 19954
Flags: acpi aes aperfmperf apic arat arch_perfmon avx bts clflush cmov
constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept
erms est f16c flexpriority flush_l1d fpu fsgsbase fxsr ht ibpb ibrs ida
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
rdrand rdtscp rep_good sep smep ss 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: Vulnerable
Type: l1tf mitigation: PTE Inversion
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: conditional, RSB filling
Type: srbds status: Vulnerable: No microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel 3rd Gen Core processor Graphics vendor: Hewlett-Packard
driver: i915 v: kernel arch: Gen7 process: Intel 22nm built: 2012-13 ports:
active: LVDS-1 empty: DP-1,HDMI-A-1,VGA-1 bus-ID: 00:02.0
chip-ID: 8086:0166 class-ID: 0300
Device-2: AMD Thames [Radeon HD 7550M/7570M/7650M]
vendor: Hewlett-Packard driver: radeon v: kernel arch: TeraScale 2
code: Evergreen process: TSMC 32-40nm built: 2009-15 pcie: gen: 2
speed: 5 GT/s lanes: 16 ports: active: none empty: VGA-2 bus-ID: 01:00.0
chip-ID: 1002:6841 class-ID: 0300
Device-3: Sunplus Innovation type: USB driver: uvcvideo bus-ID: 1-1.3:3
chip-ID: 1bcf:2c29 class-ID: 0e02
Display: x11 server: X.Org v: 1.20.13 with: Xwayland compositor: xfwm
v: 4.16.1 driver: X: loaded: modesetting unloaded: fbdev,radeon,vesa
gpu: i915 display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
s-diag: 414mm (16.31")
Monitor-1: LVDS-1 model: Chi Mei Opto 0x15a1 built: 2011 res: 1366x768
hz: 60 dpi: 101 gamma: 1.2 chroma: red: x: 0.620 y: 0.341 green: x: 0.322
y: 0.600 blue: x: 0.161 y: 0.082 white: x: 0.314 y: 0.329
size: 344x193mm (13.54x7.6") diag: 394mm (15.5") ratio: 16:9
modes: 1366x768
EDID-Warnings: 1: parse_edid: unknown flag 2
OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2)
v: 4.2 Mesa 21.2.6 compat-v: 3.0 direct render: Yes
Audio:
Device-1: Intel 7 Series/C216 Family High Definition Audio
vendor: Hewlett-Packard 7 driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
chip-ID: 8086:1e20 class-ID: 0403
Sound Server-1: ALSA v: k5.4.0-121-generic running: yes
Sound Server-2: PulseAudio v: 13.99.1 running: yes
Network:
Device-1: Intel Centrino Wireless-N 1000 [Condor Peak] driver: iwlwifi
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0
chip-ID: 8086:0083 class-ID: 0280
IF: wlo1 state: up mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
broadcast: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 05:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp5s0 state: down mac: <filter>
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: 344.68 GiB used: 8.39 GiB (2.4%)
ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 250GB
family: based SSDs size: 232.89 GiB block-size: physical: 512 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 2B6Q temp: 28 C scheme: GPT
SMART: yes state: enabled health: PASSED on: 249d 19h cycles: 1330
written: 2.21 TiB
ID-2: /dev/sdb maj-min: 8:16 type: USB model: SATA SSD
family: Driven OEM SSDs size: 111.79 GiB block-size: physical: 512 B
logical: 512 B sata: 3.2 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: SBFM61.0 temp: 33 C scheme: GPT
SMART: yes state: enabled health: PASSED on: 23d 0h cycles: 629
Optical-1: /dev/sr0 vendor: hp model: DVD A DS8A8SH rev: KH62
dev-links: cdrom,cdrw,dvd,dvdrw
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: 32 GiB size: 31.25 GiB (97.65%) used: 8.39 GiB (26.8%)
fs: ext4 block-size: 4096 B dev: /dev/sdb3 maj-min: 8:19 label: lm20xfce
uuid: 6598930e-4475-4e79-b85f-88ba105ca86e
Swap:
Kernel: swappiness: 5 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: file size: 1.48 GiB used: 0 KiB (0.0%) priority: -2
file: /swapfile
Unmounted:
ID-1: /dev/sda1 maj-min: 8:1 size: 128 MiB fs: vfat label: EFI
uuid: 2D9E-C996
ID-2: /dev/sda2 maj-min: 8:2 size: 63.4 GiB fs: ntfs label: W10H
uuid: 53C2BCF377738111
ID-3: /dev/sda3 maj-min: 8:3 size: 615 MiB fs: ntfs label: N/A
uuid: F22E0FB62E0F7341
ID-4: /dev/sda4 maj-min: 8:4 size: 64 GiB fs: ntfs label: PODATKI
uuid: 417B000C2C05B7F9
ID-5: /dev/sdb1 maj-min: 8:17 size: 2 MiB fs: N/A label: N/A uuid: N/A
ID-6: /dev/sdb2 maj-min: 8:18 size: 200 MiB fs: vfat label: EFI
uuid: 2612-4AE6
ID-7: /dev/sdb4 maj-min: 8:20 size: 32 GiB fs: ntfs label: zacasno
uuid: 68FC23EFFC23B66A
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: Sunplus Innovation type: Video driver: uvcvideo
interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 1bcf:2c29
class-ID: 0e02
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
Hub-5: 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-4:3 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID
driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s
power: 98mA chip-ID: 046d:c52b class-ID: 0300
Hub-6: 4-0:1 info: Super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Device-1: 4-2:2 info: ASMedia Name: ASM1051E SATA 6Gb/s bridge ASM1053E
ASM1153 3Gb/s ASM1153E bridge
type: Mass Storage driver: uas interfaces: 1 rev: 3.0 speed: 5 Gb/s
chip-ID: 174c:55aa class-ID: 0806 serial: <filter>
Sensors:
System Temperatures: cpu: 46.0 C mobo: N/A gpu: radeon temp: 43.5 C
Fan Speeds (RPM): N/A
Repos:
Packages: apt: 1918 lib: 966
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http://packages.linuxmint.com una main upstream import backport
2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
6: deb http://archive.canonical.com/ubuntu/ focal partner
Processes:
CPU top: 5 of 191
1: cpu: 15.5% command: firefox pid: 1827 mem: 299.4 MiB (3.8%)
2: cpu: 4.3% command: xorg pid: 597 mem: 75.9 MiB (0.9%)
3: cpu: 3.3% command: firefox-bin pid: 2042 mem: 121.3 MiB (1.5%)
4: cpu: 2.6% command: firefox-bin pid: 2034 mem: 140.1 MiB (1.7%)
5: cpu: 0.5% command: sudo pid: 2698 mem: 5.53 MiB (0.0%)
Memory top: 5 of 191
1: mem: 299.4 MiB (3.8%) command: firefox pid: 1827 cpu: 15.5%
2: mem: 140.1 MiB (1.7%) command: firefox-bin pid: 2034 cpu: 2.6%
3: mem: 121.3 MiB (1.5%) command: firefox-bin pid: 2042 cpu: 3.3%
4: mem: 111.6 MiB (1.4%) command: firefox-bin pid: 2037 cpu: 0.3%
5: mem: 77.0 MiB (0.9%) command: firefox-bin pid: 1978 cpu: 0.1%
Info:
Processes: 191 Uptime: 14m wakeups: 3 Init: systemd v: 245
target: graphical (5) default: graphical tool: systemctl Compilers:
gcc: 9.4.0 alt: 9 Shell: Bash (sudo) v: 5.0.17 running-in: xfce4-terminal
inxi: 3.3.19