Centos 7 - Driver to run the Wine emulator

Issues related to applications and software problems
Post Reply
Giannis
Posts: 4
Joined: 2023/02/21 20:22:27
Location: Athens
Contact:

Centos 7 - Driver to run the Wine emulator

Post by Giannis » 2023/02/21 21:12:48

I have a version of CentOS Linux release 7.9.2009 (Core) and I need to run the Wine emulator. For this purpose I need a driver to install for visualization. Unfortunately new drivers are incompatible. The concrete controller specification is:
root@estert ~]# sudo lshw -class display
*-display
description: VGA compatible controller
physical id: 2
bus info: pci@0000:00:02.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: vga_controller rom
configuration: driver=bochs-drm latency=0
resources: irq:0 memory:fd000000-fdffffff memory:fea50000-fea50fff memory:fea40000-fea4ffff
[root@estert ~]# lshw -numeric -C display
*-display
description: VGA compatible controller
product: [1234:1111]
vendor: [1234]
physical id: 2
bus info: pci@0000:00:02.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: vga_controller rom
configuration: driver=bochs-drm latency=0
resources: irq:0 memory:fd000000-fdffffff memory:fea50000-fea50fff memory:fea40000-fea4ffff
[root@estert ~]# xrandr --verbose --properties
Can't open display
[root@estert ~]# lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Device 1234:1111 (rev 02)
Subsystem: Red Hat, Inc. Device 1100
Kernel driver in use: bochs-drm
Kernel modules: bochs_drm
[root@estert ~]#

The Wine error protocol (i have X server running and $DISPLAY 0 all ok):
0098:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0098:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
0098:err:systray:initialize_systray Could not create tray window
0110:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0110:err:winediag:nodrv_CreateWindow L"Make sure that your X server is running and that $DISPLAY is set correctly."


What can I do to run Wine (if it is possible)?

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 - Driver to run the Wine emulator

Post by TrevorH » 2023/02/21 22:59:16

You're running as root and it has no $DISPLAY set. If you use sudo to become root it deliberately removes $DISPLAY from teh things passed to the new root environment variables. This is why you see
[root@estert ~]# xrandr --verbose --properties
Can't open display
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Giannis
Posts: 4
Joined: 2023/02/21 20:22:27
Location: Athens
Contact:

Re: Centos 7 - Driver to run the Wine emulator

Post by Giannis » 2023/02/23 20:52:09

Thanks a lot TrevorH. I had set the DISPLAY=:0.0 and this my output:
[root@estert ~]# xrandr --verbose --properties
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
Virtual-1 connected primary 1024x768+0+0 (0x42) normal (normal left inverted right x axis y axis) 260mm x 195mm
Identifier: 0x40
Timestamp: 10184
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 0
CRTCs: 0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
EDID:
00ffffffffffff004914341200000000
2a180104a51a137806ee91a3544c9926
0f5054210800e1c0d1c0010101010101
0101010101012520006641001a30001e
334004c310000018000000fd00327d1e
a078010a202020202020000000fc0051
454d55204d6f6e69746f720a000000f7
000a004aa2242920000000000000012d
02030a00457d6560591f000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
000000000000000000000000000000f2
link-status: Good
supported: Good, Bad
CONNECTOR_ID: 33
supported: 33
non-desktop: 0
range: (0, 1)
1024x768 (0x42) 82.290MHz -HSync -VSync *current +preferred
h: width 1024 start 1280 end 1310 total 1382 skew 0 clock 59.54KHz
v: height 768 start 771 end 774 total 794 clock 74.99Hz
1920x1080 (0x43) 148.500MHz -HSync -VSync
h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.50KHz
v: height 1080 start 1084 end 1089 total 1125 clock 60.00Hz
1920x1080 (0x44) 148.500MHz +HSync +VSync
h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 56.25KHz
v: height 1080 start 1084 end 1089 total 1125 clock 50.00Hz
1600x1200 (0x45) 162.000MHz +HSync +VSync
h: width 1600 start 1664 end 1856 total 2160 skew 0 clock 75.00KHz
v: height 1200 start 1201 end 1204 total 1250 clock 60.00Hz
1680x1050 (0x46) 146.250MHz -HSync +VSync
h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.29KHz
v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz
1400x1050 (0x47) 121.750MHz -HSync +VSync
h: width 1400 start 1488 end 1632 total 1864 skew 0 clock 65.32KHz
v: height 1050 start 1053 end 1057 total 1089 clock 59.98Hz
1280x1024 (0x48) 108.000MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
1440x900 (0x49) 106.500MHz -HSync +VSync
h: width 1440 start 1520 end 1672 total 1904 skew 0 clock 55.93KHz
v: height 900 start 903 end 909 total 934 clock 59.89Hz
1280x960 (0x4a) 108.000MHz +HSync +VSync
h: width 1280 start 1376 end 1488 total 1800 skew 0 clock 60.00KHz
v: height 960 start 961 end 964 total 1000 clock 60.00Hz
1360x768 (0x4b) 85.500MHz +HSync +VSync
h: width 1360 start 1424 end 1536 total 1792 skew 0 clock 47.71KHz
v: height 768 start 771 end 777 total 795 clock 60.02Hz
1280x768 (0x4c) 79.500MHz -HSync +VSync
h: width 1280 start 1344 end 1472 total 1664 skew 0 clock 47.78KHz
v: height 768 start 771 end 778 total 798 clock 59.87Hz
1024x768 (0x4d) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
800x600 (0x4e) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
640x480 (0x4f) 25.200MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.50KHz
v: height 480 start 490 end 492 total 525 clock 60.00Hz
640x480 (0x50) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz
[root@estert ~]#

I have started wine64 (winecfg) from another user as root but the same problem Application tried to create a window, but no driver could be loaded

Giannis
Posts: 4
Joined: 2023/02/21 20:22:27
Location: Athens
Contact:

Re: Centos 7 - Driver to run the Wine emulator

Post by Giannis » 2023/03/09 19:29:27

I have switch to another user "su giannis" and set
xhost -SI:localuser:giannis
ssh giannis@estert -X
ssh giannis@estert -Y
export DISPLAY=:0
and voila the error "could not load driver" is gone. Check with xrandr --verbose --properties and i have the same output as root. All seems to be ok!
But wine (winecfg) still crashes without any errors! Any ideas?

Giannis
Posts: 4
Joined: 2023/02/21 20:22:27
Location: Athens
Contact:

Re: Centos 7 - Driver to run the Wine emulator

Post by Giannis » 2023/03/20 10:14:32

I have used putty with xming and wine is still not working. Then i have used MobaXTerm for the SSH connection and all ok! Thank you.

Post Reply