MPV: VT_GETMODE failed: Inappropriate ioctl for device. Failed to setup EGL

Any solution for this ?
After recent system update, mpv broke.

$ mpv 'Vitamix.mp4'
(+) Video --vid=1 (*) (h264 854x480 29.970fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.                                                               
[vo/gpu] Failed to setup EGL.

KDE
kernel: 5.10.89-1-MANJARO

Hi @andrewysk,

Please see [HowTo] Provide System Information and, if applicable, [HowTo] post screenshots and links.

1 Like

can you add

sudo pacman -S eglinfo glxinfo

I am still trying mpv on brand new manjaro live usb (gonna try my installed os later) .
On manjaro live usb, i installed mpv, but when i run it, it shows this error:

mpv: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.29’ not found (required by /usr/lib/librubberband.so.2)

sudo pacman -S eglinfo glxinfo

This command you told me to try does not work on this live os. Gonna try it when i give up on this method.

$ sudo pacman -S glxinfo -v
Root      : /
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/  
Hook Dirs : /usr/share/libalpm/hooks/  /etc/pacman.d/hooks/  
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
GPG Dir   : /etc/pacman.d/gnupg/
Targets   : glxinfo
resolving dependencies...
looking for conflicting packages...

Packages (1) mesa-utils-8.4.0-6

Total Installed Size:  0.10 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                                [#######################################################] 100%
(1/1) checking package integrity                                                              [#######################################################] 100%
(1/1) loading package files                                                                   [#######################################################] 100%
(1/1) checking for file conflicts                                                             [#######################################################] 100%
error: failed to commit transaction (conflicting files)
mesa-utils: /usr/bin/eglinfo exists in filesystem (owned by mesa-demos)
mesa-utils: /usr/bin/glxgears exists in filesystem (owned by mesa-demos)
mesa-utils: /usr/bin/glxinfo exists in filesystem (owned by mesa-demos)
Errors occurred, no packages were upgraded.

eglinfo and glxinfo were moved from mesa-demos to mesa-utils. You need to sync and update before you can install mesa-utils.

sudo pacman -Syu mesa-utils

I have installed mesa-utils before yo uposted this msg… however it doesn’t help solve anything. mpv still same error msg.
I can’t run -Syu option, as i tried 3 times on this live os… it just ran out of memory before upgrade finish.

Why are you trying to install things in a live session to begin with?

3 Likes

I want to test out if mpv also having problem on brand new Manjaro Kde, i used manjaro kde live usb to boot up, mount swap, and then upgrade the whole system (so that i can test out the software with latest os) without actually installing it.

During pacman -Syyu , i noticed with htop that memory usage started to increase slowly (as more packages being upgraded). until the point 97% mem being used up (as display in Htop). but swap usage was totally 0% used.

While htop memory usage is increasing steadily, i was also monitoring with $df -h and found out as htop mem usage incresing, these 2 location in df also increasing simutaneously.
These are: overlay_root (mounted on: /run/miso/overlay_root) and overlay (mounted on / ). Both of these 2 mount points were increasing on par with memory usage (as on Htop) until 100% .

Then the upgrade operation halted and cancelled itself (causing the whole system to break) in many aspect. but does not matter as i can just shutdown and retry again, i tried 3 times just to find out that this is the problem
In journalctl, i noticed it logged:
coredump[8546]: process 8540 (kded5) of user 1000 dumped core.
coredump[8546]: cannot store coredump of 8540 (kded5): No space left on device.

My question are:
Is it possible to increase the capacities of these 2 mounted points , so that they will not reach saturation before upgrading was done ?
What are these 2 mount point for ?
Can i upgrade the system without actually installing it ? If not possible, then i will just abort this method of testing mpv.
I have not use vmware before, hence this is a way i do test.
Thanks

If you’re already running Manjaro, you never need to reinstall from an updated ISO to have the latest version. Just install updates on your existing installation. That is literally the definition of rolling release.

Also, I’ve used mpv without issues for years on Manjaro and Arch. If you’re having problems, you should ask for support, the first step of which is to post the results of inxi -Fazy so that we can diagnose any hardware/driver issues.

Install more memory…

To run the live system you booted up.

You can if there is enough memory (which limits the size of the mountpoints).

I thought swap is used when physical memory is not enough… however it didn’t utilize swap at all.

That’s the problem, since i have update/ upgraded and it causing mpv to have problem:

[vo/gpu] Can't open TTY for VT control: No such device or address
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu] Failed to setup EGL.

[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu] Failed to setup EGL.

I can’t solve it by uninstalling and reinstalling…
hence i thought i can try it on brand new manjaro kde live …
But having problem to update/upgrade … due to the described issue.

It may be a driver incompatibility in the latest upgrade, which would also be present on a new installation. Since you still haven’t shared your system information with inxi -Fazy we can’t help diagnose any issues caused by the latest update.

I’m unlisting this post for now and have merged your duplicate topic about the same issue. You initially said you had trouble after a recent update. Now you’re in a live session in an unsupported partial upgrade state. No further troubleshooting will be done while you’re messing around in a live session, it’s pointless.

After update / upgrade, mpv no longer work.
Please teach me how to troubleshoot.

Thx.

$ mpv Desktop/Video.mp4
 (+) Video --vid=1 (*) (h264 854x480 15.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu] Failed to setup EGL.
$ mpv --version
mpv 0.34.0-dirty Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects
 built on UNKNOWN
FFmpeg library versions:
   libavutil       56.70.100
   libavcodec      58.134.100
   libavformat     58.76.100
   libswscale      5.9.100
   libavfilter     7.110.100
   libswresample   3.9.100
FFmpeg version: n4.4.1
inxi
System:
  Kernel: 5.10.89-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/vmlinuz-5.10-x86_64
    root=UUID=24c3b501-105b-4185-8137-69422a42ab81 rw ipv6.disable=1
  Desktop: KDE Plasma 5.23.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: Dell product: OptiPlex 755 v: N/A
    serial: <superuser required> Chassis: type: 6 serial: <superuser required>
  Mobo: Dell model: 0GM819 serial: <superuser required> BIOS: Dell v: A19
    date: 05/31/2011
CPU:
  Info: model: Intel Core2 Duo E8400 bits: 64 type: MCP arch: Core Penryn
    family: 6 model-id: 0x17 (23) stepping: 0xA (10) microcode: 0xA0B
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 2003 high: 2007 min/max: N/A cores: 1: 2007 2: 1999
    bogomips: 11975
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 ssse3
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds
    status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
    mitigation: Full generic retpoline, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 82Q35 Express Integrated Graphics vendor: Dell OptiPlex 755
    driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:29b2 class-ID: 0300
  Display: x11 server: X.Org 1.21.1.2 compositor: kwin_x11 driver:
    loaded: intel unloaded: modesetting alternate: fbdev,vesa display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1280x1024 s-dpi: 96 s-size: 338x270mm (13.3x10.6")
    s-diag: 433mm (17")
  Monitor-1: VGA1 res: 1280x1024 hz: 60 dpi: 86 size: 380x300mm (15.0x11.8")
    diag: 484mm (19.1")
  OpenGL: renderer: Mesa DRI Intel Q35 v: 1.4 Mesa 21.3.2 direct render: Yes
Audio:
  Device-1: Intel 82801I HD Audio vendor: Dell Optiplex 755
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:293e
    class-ID: 0403
  Device-2: Plantronics Plantronics .Audio 622 USB type: USB
    driver: plantronics,snd-usb-audio,usbhid bus-ID: 2-6.1.4:5
    chip-ID: 047f:c014 class-ID: 0300
  Sound Server-1: ALSA v: k5.10.89-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.42 running: yes
Network:
  Device-1: Intel 82566DM-2 Gigabit Network vendor: Dell OptiPlex 755
    driver: e1000e v: kernel port: ecc0 bus-ID: 00:19.0 chip-ID: 8086:10bd
    class-ID: 0200
  IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel 82557/8/9/0/1 Ethernet Pro 100 driver: e100 v: kernel
    port: dcc0 bus-ID: 03:00.0 chip-ID: 8086:1229 class-ID: 0200
  IF: enp3s0 state: down mac: <filter>
  IF-ID-1: br-63cdad5dbffb state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-2: br-d517a49e432c state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-3: docker0 state: down mac: <filter>
  IF-ID-4: veth837a31c state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-5: veth932fa20 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-6: vetha2ac8ef state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-7: vethb1f9720 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-8: vethccdf6ab state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-9: vethe2418cb state: up speed: 10000 Mbps duplex: full
    mac: <filter>
Drives:
  Local Storage: total: 465.66 GiB used: 81.38 GiB (17.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST3250310AS
    size: 232.83 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    type: N/A serial: <filter> rev: A scheme: MBR
  ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST3250318AS
    size: 232.83 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC46 scheme: GPT
Partition:
  ID-1: / raw-size: 28.16 GiB size: 27.59 GiB (97.98%) used: 17.52 GiB (63.5%)
    fs: ext4 dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot raw-size: 1.95 GiB size: 1.92 GiB (98.43%)
    used: 105.9 MiB (5.4%) fs: ext2 dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 187.09 GiB size: 183.16 GiB (97.90%)
    used: 63.75 GiB (34.8%) fs: ext4 dev: /dev/sda4 maj-min: 8:4
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 15.62 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda3 maj-min: 8:3
Sensors:
  System Temperatures: cpu: 37.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 176 Uptime: 14m wakeups: 0 Memory: 7.63 GiB
  used: 2.14 GiB (28.1%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 Packages: pacman: 1440 lib: 439 flatpak: 0 Shell: Bash v: 5.1.12
  running-in: konsole inxi: 3.3.11

mpv log (detailed):

Creating a duplicate topic is not appropriate.

It seems you forgot something.

Please clarify if you are using an installed system or still messing around on a live ISO.

These new logs are on the existing updated system that break the mpv after upgrade.
The live iso was used for testing purpose, but since that path does not work, why bother to create more trouble ?

Did you create a custom mpv.conf?

Yes, i did. But i have renamed it to mpv.conf.bak after upgrade broke mpv