LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-24-2024, 11:10 AM   #196
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,679

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713

Quote:
Originally Posted by elcore View Post
One good thing about Xorg is that you can configure it manually with xorg.conf.
Wayland's supposed to do all that automagically which is great when it works, but as soon as something unpredictable happens you're left with no configuration option.
Then you get depend on wayland developers' good will instead of writing your workaround in configuration file, which is kind of a downside I guess.
I use Plasma on Wayland daily. I also use it on X.Org, less often but more than weekly. I have made many minor configuration changes to Plasma/KDE settings on both, but have not had to manually adjust xorg.conf. I see a difference in the way settings work between them, but no difference in the settings themselves (the KDE team has done GREAT work on that). In both cases I can use the settings to achieve what I need to get what I want from Plasma. (When I need something leaner than Plasma I drop to fluxbox on x.org or tinyx and EVERYTHING gets out of my way!)

IF I could find, on my hardware, any cases where the difference between the two was important or even inconvenient, I would not be running both so often. What I observe is that, for me, they both just work really well.

I expect things will get better with time. (Yes, for both Wayland and X.org, and certainly for the WM/DE applications that ride on them.) They are good enough already now that I have NO complaints.
 
Old 02-24-2024, 11:55 AM   #197
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
I use Plasma on Wayland daily. I also use it on X.Org, less often but more than weekly. I have made many minor configuration changes to Plasma/KDE settings on both, but have not had to manually adjust xorg.conf..
Plasma's all science fiction to me, I mostly use blackbox with xfce4 panel, and xfwm4 as fallback..
The xorg.conf file was and still is very helpful to me, and additionally the nvidia driver docs still rely heavily on that file.
Lack of configuration file, and reliance on automated detection of display settings is doomed on any system with custom workarounds already in place.
Just saying, xorg.conf allows to specify an EDID binary for one example, allows to bind a key combination to restart X server for another example, and there's hundreds of use cases.
What happens when wayland freezes, is there a key combination to restart it? I don't know much about it, but I've read nvidia's legacy hardware doesn't like it for some reason.
 
Old 02-24-2024, 01:31 PM   #198
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,679

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Quote:
Originally Posted by elcore View Post
Plasma's all science fiction to me, I mostly use blackbox with xfce4 panel, and xfwm4 as fallback..
The xorg.conf file was and still is very helpful to me, and additionally the nvidia driver docs still rely heavily on that file.
Lack of configuration file, and reliance on automated detection of display settings is doomed on any system with custom workarounds already in place.
Just saying, xorg.conf allows to specify an EDID binary for one example, allows to bind a key combination to restart X server for another example, and there's hundreds of use cases.
What happens when wayland freezes, is there a key combination to restart it? I don't know much about it, but I've read nvidia's legacy hardware doesn't like it for some reason.
The last time X.Org froze on me was 2008. Wayland has NEVER frozen on me. It might be because I avoid Nvidia.

Does anyone have a way that will cause X.Org to freeze so I can run some tests?
 
Old 02-24-2024, 02:26 PM   #199
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 787

Rep: Reputation: 250Reputation: 250Reputation: 250
I've had random lockups/crashes under Xorg for a long time. It happens randomly, from 2-3 days to 2-3 weeks or more. First I blamed Mesa, then I blamed amdgpu, now I think it might be Xorg because I've been using Wayland for 12 days of uptime and the same thing hasn't happened. I don't know how you'd test this because I think it's specific to Radeon. I've given up on trying to fix it. Here's what one of them looks like:

Code:
Kernel 6.6.6
mesa-23.3.2 black screen, lockup, display unusable

2024-01-12T15:45:27.143240-05:00 atr2 kernel: [1090011.026454] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=31532432, emitted seq=31532434
2024-01-12T15:45:27.143259-05:00 atr2 kernel: [1090011.026979] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process Xorg pid 22313 thread Xorg:cs0 pid 22315
2024-01-12T15:45:27.143261-05:00 atr2 kernel: [1090011.027425] amdgpu 0000:09:00.0: amdgpu: GPU reset begin!
2024-01-12T15:45:27.779262-05:00 atr2 kernel: [1090011.663356] amdgpu 0000:09:00.0: amdgpu: PCI CONFIG reset
2024-01-12T15:45:27.783243-05:00 atr2 kernel: [1090011.667252] amdgpu 0000:09:00.0: amdgpu: GPU reset succeeded, trying to resume
2024-01-12T15:45:27.783261-05:00 atr2 kernel: [1090011.667364] [drm] PCIE gen 3 link speeds already enabled
2024-01-12T15:45:27.785251-05:00 atr2 kernel: [1090011.669224] amdgpu 0000:09:00.0: amdgpu: PCIE GART of 1024M enabled (table at 0x000000F400800000).
2024-01-12T15:45:28.235335-05:00 atr2 kernel: [1090012.118558] [drm:si_dpm_set_power_state [amdgpu]] *ERROR* si_halt_smc failed
2024-01-12T15:45:28.697237-05:00 atr2 kernel: [1090012.580567] [drm:si_dpm_set_power_state [amdgpu]] *ERROR* si_restrict_performance_levels_before_switch failed
2024-01-12T15:45:30.797247-05:00 atr2 kernel: [1090014.681342] [drm:si_dpm_set_power_state [amdgpu]] *ERROR* si_restrict_performance_levels_before_switch failed
2024-01-12T15:45:31.027240-05:00 atr2 kernel: [1090014.910931] [drm] UVD initialized successfully.
2024-01-12T15:45:31.481234-05:00 atr2 kernel: [1090015.365137] amdgpu 0000:09:00.0: amdgpu: recover vram bo from shadow start
2024-01-12T15:45:31.483255-05:00 atr2 kernel: [1090015.366723] amdgpu 0000:09:00.0: amdgpu: recover vram bo from shadow done
2024-01-12T15:45:31.483267-05:00 atr2 kernel: [1090015.366767] [drm] Skip scheduling IBs!
2024-01-12T15:45:32.213262-05:00 atr2 kernel: [1090016.097357] amdgpu 0000:09:00.0: amdgpu: GPU reset(1) succeeded!
2024-01-12T15:45:32.218243-05:00 atr2 kernel: [1090016.101765] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
2024-01-12T15:45:32.975236-05:00 atr2 kernel: [1090016.858671] [drm:si_dpm_set_power_state [amdgpu]] *ERROR* si_restrict_performance_levels_before_switch failed
2024-01-12T15:45:33.416231-05:00 atr2 kernel: [1090017.299617] br0: port 7(tap6) entered disabled state
2024-01-12T15:45:34.122944-05:00 atr2 kernel: [1090017.627608] ------------[ cut here ]------------
2024-01-12T15:45:34.122962-05:00 atr2 kernel: [1090017.627620] WARNING: CPU: 6 PID: 22325 at drivers/gpu/drm/ttm/ttm_bo.c:326 ttm_bo_release+0x2f4/0x340 [ttm]
2024-01-12T15:45:34.146578-05:00 atr2 kernel: [1090017.627660] Modules linked in: uas usb_storage ods5(O) ext2 dm_crypt trusted tcp_diag inet_diag rfcomm fuse vgem drm_shmem_helper nfnetlink_queue nfnetlink_log decnet3(O) xt_MASQUERADE xt_$2024-01-12T15:45:34.146601-05:00 atr2 kernel: [1090017.627825]  snd_seq_device ecc led_class_multicolor rtsx_usb mc wacom joydev usbhid pktcdvd hwmon video drm_exec drm_suballoc_helper amdxcp mfd_core drm_buddy ccp gpu_sched kvm drm_displa$2024-01-12T15:45:34.146603-05:00 atr2 kernel: [1090017.627971] CPU: 6 PID: 22325 Comm: Xorg:sh2 Tainted: G        W  O       6.6.6 #1
2024-01-12T15:45:34.146603-05:00 atr2 kernel: [1090017.627981] Hardware name: LENOVO 90H1000FUS/3100, BIOS O38KT20A 06/09/2017
2024-01-12T15:45:34.146604-05:00 atr2 kernel: [1090017.627986] RIP: 0010:ttm_bo_release+0x2f4/0x340 [ttm]
2024-01-12T15:45:34.146605-05:00 atr2 kernel: [1090017.628018] Code: 48 8b 6c 24 40 48 8b 5c 24 38 bf 20 00 00 00 4c 8b 6c 24 50 4c 8b 74 24 58 48 83 c4 60 e9 64 ab 85 ef 48 89 ef e9 1b fe ff ff <0f> 0b 48 83 7b 20 00 0f 84 55 fd ff ff 0f $2024-01-12T15:45:34.644766-05:00 atr2 kernel: [1090017.628026] RSP: 0018:ffffbc1622e47c60 EFLAGS: 00010202
2024-01-12T15:45:34.644795-05:00 atr2 kernel: [1090017.628034] RAX: 0000000000000000 RBX: ffff91ad657609d0 RCX: 0000000000000000
2024-01-12T15:45:34.644797-05:00 atr2 kernel: [1090017.628041] RDX: 0000000000000001 RSI: ffff91ad180948b8 RDI: ffff91ad657609d0
2024-01-12T15:45:34.644798-05:00 atr2 kernel: [1090017.628047] RBP: ffff91ac9188eee0 R08: 0000000000000064 R09: ffff91ad18094780
2024-01-12T15:45:34.644800-05:00 atr2 kernel: [1090017.628053] R10: ffff91ad657608d0 R11: ffff91ad657838e8 R12: ffff91ac006a1f58
2024-01-12T15:45:34.644801-05:00 atr2 kernel: [1090017.628058] R13: ffff91ad65760858 R14: ffff91ac006a1f00 R15: ffff91ad15503450
2024-01-12T15:45:34.644802-05:00 atr2 kernel: [1090017.628064] FS:  00007fffd67fc6c0(0000) GS:ffff91ad96f80000(0000) knlGS:0000000000000000
2024-01-12T15:45:34.644804-05:00 atr2 kernel: [1090017.628071] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
2024-01-12T15:45:34.644805-05:00 atr2 kernel: [1090017.628077] CR2: 00007ffff78bdd70 CR3: 00000001d934c000 CR4: 00000000003506e0
2024-01-12T15:45:34.644806-05:00 atr2 kernel: [1090017.628083] Call Trace:
2024-01-12T15:45:34.644807-05:00 atr2 kernel: [1090017.628089]  <TASK>
2024-01-12T15:45:34.644808-05:00 atr2 kernel: [1090017.628095]  ? __warn+0x94/0x170
2024-01-12T15:45:34.644815-05:00 atr2 kernel: [1090017.628108]  ? ttm_bo_release+0x2f4/0x340 [ttm]
2024-01-12T15:45:34.644816-05:00 atr2 kernel: [1090017.628136]  ? report_bug+0x1b2/0x1e0
2024-01-12T15:45:34.644817-05:00 atr2 kernel: [1090017.628148]  ? handle_bug+0x37/0x70
2024-01-12T15:45:34.644818-05:00 atr2 kernel: [1090017.628157]  ? exc_invalid_op+0x17/0x70
2024-01-12T15:45:34.644819-05:00 atr2 kernel: [1090017.628166]  ? asm_exc_invalid_op+0x16/0x20
2024-01-12T15:45:34.644820-05:00 atr2 kernel: [1090017.628175]  ? ttm_bo_release+0x2f4/0x340 [ttm]
2024-01-12T15:45:34.644821-05:00 atr2 kernel: [1090017.628204]  ? preempt_count_add+0x64/0xa0
2024-01-12T15:45:34.644826-05:00 atr2 kernel: [1090017.628214]  ? _raw_spin_trylock+0x13/0x60
2024-01-12T15:45:34.644837-05:00 atr2 kernel: [1090017.628226]  amdgpu_bo_unref+0x1a/0x30 [amdgpu]
2024-01-12T15:45:34.644839-05:00 atr2 kernel: [1090017.628916]  amdgpu_gem_object_free+0x30/0x50 [amdgpu]
2024-01-12T15:45:34.644840-05:00 atr2 kernel: [1090017.629432]  drm_gem_dmabuf_release+0x33/0x50 [drm]
2024-01-12T15:45:34.644841-05:00 atr2 kernel: [1090017.629516]  dma_buf_release+0x3a/0xa0
2024-01-12T15:45:34.644842-05:00 atr2 kernel: [1090017.629525]  __dentry_kill+0xf5/0x170
2024-01-12T15:45:34.644843-05:00 atr2 kernel: [1090017.629531]  __fput+0x151/0x2c0
2024-01-12T15:45:34.644846-05:00 atr2 kernel: [1090017.629538]  task_work_run+0x59/0x80
2024-01-12T15:45:34.644848-05:00 atr2 kernel: [1090017.629546]  do_exit+0x368/0xb30
2024-01-12T15:45:34.644849-05:00 atr2 kernel: [1090017.629552]  ? futex_unqueue+0x43/0x70
2024-01-12T15:45:34.644850-05:00 atr2 kernel: [1090017.629559]  ? futex_wait+0xe4/0x1c0
2024-01-12T15:45:34.644851-05:00 atr2 kernel: [1090017.629566]  do_group_exit+0x2d/0x80
2024-01-12T15:45:34.644852-05:00 atr2 kernel: [1090017.629572]  get_signal+0xae7/0xb30
2024-01-12T15:45:34.644853-05:00 atr2 kernel: [1090017.629579]  arch_do_signal_or_restart+0x51/0x260
2024-01-12T15:45:34.644859-05:00 atr2 kernel: [1090017.629598]  exit_to_user_mode_prepare+0xc5/0x190
2024-01-12T15:45:34.644861-05:00 atr2 kernel: [1090017.629607]  syscall_exit_to_user_mode+0x1d/0x50
2024-01-12T15:45:34.644862-05:00 atr2 kernel: [1090017.629615]  do_syscall_64+0x4f/0x90
2024-01-12T15:45:34.644875-05:00 atr2 kernel: [1090017.629621]  entry_SYSCALL_64_after_hwframe+0x4b/0xb5
2024-01-12T15:45:34.644876-05:00 atr2 kernel: [1090017.629627] RIP: 0033:0x7ffff7a8f5c6
2024-01-12T15:45:34.644878-05:00 atr2 kernel: [1090017.629633] Code: Unable to access opcode bytes at 0x7ffff7a8f59c.
2024-01-12T15:45:34.644891-05:00 atr2 kernel: [1090017.629636] RSP: 002b:00007fffd67fbb10 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
2024-01-12T15:45:34.644894-05:00 atr2 kernel: [1090017.629642] RAX: fffffffffffffe00 RBX: 0000000000733738 RCX: 00007ffff7a8f5c6
2024-01-12T15:45:34.644896-05:00 atr2 kernel: [1090017.629646] RDX: 0000000000000000 RSI: 0000000000000189 RDI: 0000000000733764
2024-01-12T15:45:34.644897-05:00 atr2 kernel: [1090017.629649] RBP: 0000000000000000 R08: 0000000000000000 R09: 00000000ffffffff
2024-01-12T15:45:34.644899-05:00 atr2 kernel: [1090017.629652] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
2024-01-12T15:45:34.644901-05:00 atr2 kernel: [1090017.629655] R13: 0000000000000000 R14: 0000000000000004 R15: 0000000000733764
2024-01-12T15:45:34.644903-05:00 atr2 kernel: [1090017.629660]  </TASK>
2024-01-12T15:45:34.644905-05:00 atr2 kernel: [1090017.629662] ---[ end trace 0000000000000000 ]---
In this time, Wayland (mostly Labwc, some Sway) has been pretty stable except for 2-3 times (on different days) that I flopped to the text console (via ctrl-alt-1) and found it static, colored lines and unreadable. The display didn't crash and I had to go back to the GUI. After a few tries it righted itself. I've had no screen tearing and the graphics are clear & crisp but, like I said before, almost everything has to be done in a new way and many applications don't behave properly.

It turns out Labwc was responsible for my tablet not working, but version 0.7.1 released in the last few days fixes this; it works under Sway. Tiling compositors aren't my thing (your desktop looks like Midnight Commander) so I'm back with Labwc. After waybar, swaybg, bemenu, and wofi I have a decent desktop. Unfortunately, I can't include the screen shot because LQ image uploads haven't worked for me for weeks now (something about a missing "security token"). To bring the topic back to Wayland and Slackware, adding the Wayland stuff in will allow new and old to exist for years to come, side by side, and leave it to the admin to use what he wants. We still have people that use ifconfig, python2, ip4, and iptables.

We shake our fists at newness but in reality computer science is a fast moving target.

Last edited by jayjwa; 03-04-2024 at 11:49 AM. Reason: labwc 0.7.1 adds tablet support
 
1 members found this post helpful.
Old 02-25-2024, 01:43 AM   #200
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
The last time X.Org froze on me was 2008. Wayland has NEVER frozen on me. It might be because I avoid Nvidia.

Does anyone have a way that will cause X.Org to freeze so I can run some tests?
It's unfortunate, but they are the largest GPU vendor around here.
And TBH, I went to store, asked for cheapest GPU on the shelf and that is what they gave me for 100 eurobucks.
I could've asked for AMD, but I don't really need gaming GPU (I mostly just use audio/video and virtualization so it'd be a waste of money).
Buying a used one is out of the question, since they are all abused by cryptominers and then sold as "barely used" lol.
About the freeze; yeah it can happen that X goes haywire while video decoding, and not necessarily when you expect it to happen. It's random.

Edit/more info:
To be clear, it's not a cheap hardware fault: because I have other systems, and decades experience with custom made systems.
On the same machine, win7 64bit with driver 391.35, never froze, decodes fine, not one glitch.
On the same machine, unsupported 32bit slackware-14.2, 390.157, xorg-server-1.18.3, mesa-11.2.2, ffmpeg-5.1.3. works fine, decodes all video fine.
On the same machine, slackware64-15.0, driver 470.223.02, xorg-server-1.20.14, mesa-21.3.5, ffmpeg-6.1.1, sometimes freezes when decoding and/or resizing, but when X restarted does not freeze again in the same scenario.
On the same machine, slackware64-15.0, driver 470.239.06, nothing yet, new kernel and new driver's only been out for a day or two so I can't tell/didn't test quite enough yet.

I often use nouveau on that machine, but it can't decode videos properly, especially h264 and x265, displays artifacts, etc. And those formats are more and more popular every day.
And BTW, vmware has not yet listed nouveau as supported driver, so I guess in that case it's either binary driver or a forcible override which is unsupported upstream.

So, with all that considered, my guess would be Xorg bug, and I can't simply 'move to wayland' because it lacks Xorg features. Wayland doesn't support stuff I've depended on for a long time.
i.e. specifying an EDID binary on xorg.conf is the only way to use full resolution on some VGA lcd monitors, and lacking an EDID binary causes X screen not support anything above the vesa standard 1024x768 on these monitors.

Do you see where this is going, how can I support wayland adoption when it basically will force me to downgrade from 1680x1050 into 1024x768?
I'd rather have a random freeze every now and then, if we're being perfectly honest here.

Last edited by elcore; 02-25-2024 at 04:46 AM.
 
Old 02-25-2024, 07:02 AM   #201
TheTKS
Member
 
Registered: Sep 2017
Location: Ontario, Canada
Distribution: Slackware, X/ubuntu, OpenBSD, OpenWRT
Posts: 361

Rep: Reputation: 243Reputation: 243Reputation: 243
Quote:
Originally Posted by jayjwa View Post
I've had random lockups/crashes under Xorg for a long time. It happens randomly, from 2-3 days to 2-3 weeks or more. First I blamed Mesa, then I blamed amdgpu, now I think it might be Xorg because I've been using Wayland for 12 days of uptime and the same thing hasn't happened.
...

In this time, Wayland (mostly Labwc, some Sway) has been pretty stable except for 2-3 times (on different days) that I flopped to the text console (via ctrl-alt-1) and found it static, colored lines and unreadable. The display didn't crash and I had to go back to the GUI. After a few tries it righted itself. I've had no screen tearing and the graphics are clear & crisp
@jayjwa, I also get unreadable display with "coloured lines" in one case when switching ttys, but found a workaround. Our situations aren't the same, but I'm noting my workaround here in case it might be adaptable to your situation.

And if anyone knows of an actual fix, please point out a reference or post here.

I multiboot with two installations of Slackware64 on the same disk.

- 15.0, runlevel 4 into KDE Plasma (X11) on tty 7 of 7. No problem switching between ttys.

- -current, runlevel 4 into KDE Plasma (Full Wayland) on tty 8 of 8. However, tty7 shows an unresponsive KDE login screen (cursor moves, clicking anywhere does nothing.) The unreadable display with coloured lines happens when I switch from the GUI to one of the first 6 ttys and then try to switch back to the GUI on tty8. This happens every time.

The workaround: after switching to one of ttys 1 to 6, switching back to tty7 first, then to tty8. This works immediately and reliably. Even if I forget and switch straight back to 8, I can clear it up by switching to 7 then back to 8.

This problem seems unrelated to the black screen and computer lockup problem I recently described in another thread. Both problems seem to be connected to older Radeon graphics, but whether mesa or a kernel upgrade have anything to do with them this time (as seems to have been in past black screen incidents), I can't tell.

About Wayland, aside from this oddity, it mostly works for me with my limited use of Slackware -current, but I have seen applications not working under Wayland on other Linuxes. I've also seen some of those resolved.

My graphics:
Code:
bash-5.2$ inxi -G
Graphics:
  Device-1: AMD Kaveri [Radeon R7 Graphics] driver: amdgpu v: kernel
  Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
    compositor: kwin_wayland driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu
    resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.0.1 renderer: AMD Radeon R7
    Graphics (radeonsi kaveri LLVM 17.0.6 DRM 3.54 6.6.18)
  API: Vulkan v: 1.3.268 drivers: radv,llvmpipe surfaces: xcb,xlib,wayland
 
Old 02-25-2024, 08:48 AM   #202
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 165

Rep: Reputation: 155Reputation: 155
Reading elcore's comments about EDID settings - that's an essential feature for me.

I have an old Nvidia card on Slackware 15.0. with nvidia's 390.x driver. I'm running dual monitors - one off the HDMI port, and one off the VGA port. The VGA port runs through a KVM switch, as that monitor is the one I'll use for my laptop or old Winblows desktop.

Periodically, the VGA monitor will not properly identify through the KVM, and in the past I had to unplug the monitor from the KVM and connect it directly to the video card to get it working again at full resolution. Storing and using the EDID settings in xorg.conf fixed that. This problem appeared after upgrading to 15.0. (The same problem can happen on my Windows laptop, and bypassing the KVM temporarily has been the only solution.)

The McDonald's approach to software - "We do it all for you" - leaves a bad taste when the automation fails and there is no way to tell the software what it needs to do. Replacing working hardware due to malfunctioning software is also not a desirable solution.
 
Old 02-25-2024, 10:31 AM   #203
John Lumby
Member
 
Registered: Oct 2008
Posts: 74

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Jeebizz View Post
... having a network-aware display has never come up. I again can just point to RDP or VNC if you need something similar, ...
I have still not tried any form of wayland compositor, and really should not post any more comments until I have (I just need to get a Round Tuit) , but ...

I am interested in learning in two main areas :
. usage patterns and implications for wayland
. how do slackers in particular set up their graphical-display infrastructure and operation (DE, Window Manager, etc) and (as I wrote in the first append here "Are any slackers concerned ..."

I have learned plenty about the first, wayland, but I am unclear about the second. In particular Jeebizz' comment above. Is this the consensus? May I outline how I operate and then ask if I am the only slacker doing anything like it? or are others doing some (or all) of the same?

I can understand that if a slacker has only a single linux system, and never runs any linux Virtual Machine under that host system, (or has several isolated instances of that single linux system), then the question of a network-aware display doesn't arise.

For myself, I have a number of linux systems all sitting near each other in one room, some self-contained with their own monitor, some with no monitor, and numerous VM's, some of which are linux. Why I operate like this can be summarised as chaotic, unplanned, evolution, plus a containable amount of hacking and just trial-and-error. But not relevant. What is relevant is that some are far more important to me than others, and all the important ones run slackware. And all are interconnected via a simple ethernet switch, plus (for some) an internet route.

One of the most important features of the linux ecosystem for me can be summarised as "every windowing/graphical application respects the DISPLAY environment variable". For me, it is a marvellous and useful fact that every single application that I have come across which runs under linux, and writes output to a windowing system, understands and respects DISPLAY. Of course, for most of them, this is because they use some standard toolkit e.g. gtk, Qt, or (in ancient times) Athena/libXaw, Motif,...). But, the fact is, I can depend on such a protocol to have every single application everywhere on my LAN display its output on my one high-res monitor sitting conveniently in front of me. (The only exception being needing to interoperate with a camera built-in to a different machine).

What about RDP / VNC? Are they the answer? I use them too, VNC extensively, and they are useful, but all fall down on mouse support, especially use of selections and Clipboard. For some scenarios, e.g. running emacs on a remote machine running xvncserver and vnc'ing to the xvncserver, I can get around some of the deficiencies with emacs key-bindings, but most apps don't provide such customizability. vnc is fine for such simple duties as running the console of a VirtualBox VM, but for any X-windows app in that VM, I export DISPLAY to my monitor.

So, for me, being able to export DISPLAY=MyXorgHost:0 everywhere is a cornerstone. How many other slackers also do? And (I wish I already knew from testing) what is the equivalent, if any, in the wayland way?

Now, for those who are concerned about network security, which is everyone : What is the concern with Xorg? I believe the main concern is that, if the Xorg server is started to listen on tcp, then it listens on 0.0.0.0:6000, open to the world, and xauth provides insufficient protection. And clearly the scale of potential damage is greater if Xorg runs as root, which I do. linux iptables firewalling provides some defence, which I also do, but relies on great care in constructing the iptables chains to prevent intruders while allowing all desired access. My answer to that was to hack Xorg to listen on a specific private local-LAN IP address, i.e. the ipaddress configured on MyXorgHost eth0. This one change reduces the gaping hole in security to a small chink in the woodwork, since an intruder has to devise some way of sending a packet addressed to my private IP address through my IP Service Provider's routers, which of course throw it away as unroutable. No-one has physical access to my machines except me. I do not run any internet browser on MyXorgHost. The only listening TCP sockets on this machine are sshd and Xorg. (I would like to shut off sshd too but too awkward)

I always build a complete Xorg from scratch for every deployment of Xorg on any system, including of necessity systems where no Xorg Server ever runs but which does run X-client apps, which I know is very unusual and which is, as a few others have confirmed, very difficult, at least for the first time. I am used to Xorg source code (at least, some of it), have contributed two (small) bug fixes to the maintainers over the years, and have made a number of other small changes of my own to make Xorg a bit more as I like it; and doing that is, I know, very atypical. I mention all this because , if other slackers do run their Xorg servers to listen on TCP, how do they address the security concern? Or is it the other way around -- the security concern is so great that they don't tell it to listen on TCP even though they would like to?

For completeness, I'll just mention that on MyXorgHost (the one which has the Xorg server controlling my one good monitor), I run sawfish WM and no full DE.

So that is quite a lot about me just so as to explain what I rely on and how I make it all work, and therefore why I am concerned about seeing all this go. And yes, I say go, because I fear it is a delusion to say "Xorg isn't going anywhere". Read h2_1's excellent append about bit-rot. If it is not actively maintained, then it will become unusable (at least for me). Although I'm sure I will figure something out when the crunch comes, I have no idea what or how much work it will take and how it will all fit together. And I am wondering if any of this is shared by others.
 
Old 02-25-2024, 10:42 AM   #204
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,679

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
X.Org is quite mature. Wayland is still under development at a rapid pace. I see no reason for a distribution like Slackware, LFS, Gentoo, that is source based to be quick to jump onto Wayland while it is such a moving target. Distributions like RHEL, SUSE, Ubuntu, Debian, and the more cutting-edge ARCH based distributions have more motivation to adopt (at least as an option).

If I were installing Slackware (I am not) I would get the gui going with X.Org first and then PLAY with Wayland if I wanted to, thus having X.Org to fall back on.
In fact, that is how I am running Plasma on Manjaro: Wayland by default but I can log off and back on and select X.Org running Plasma or Fluxbox as a start option. That way I can run tests, but also react to issues to determine if Wayland or X.Org are part of a problem or part of a solution.
[ My first degree was Physics, and I am BIG on performing experiments. ;-) ]
 
3 members found this post helpful.
Old 02-25-2024, 12:24 PM   #205
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by John Lumby View Post
I have still not tried any form of wayland compositor, and really should not post any more comments until I have (I just need to get a Round Tuit) , but ...

I am interested in learning in two main areas :
. usage patterns and implications for wayland
. how do slackers in particular set up their graphical-display infrastructure and operation (DE, Window Manager, etc) and (as I wrote in the first append here "Are any slackers concerned ..."

I have learned plenty about the first, wayland, but I am unclear about the second. In particular Jeebizz' comment above. Is this the consensus? May I outline how I operate and then ask if I am the only slacker doing anything like it? or are others doing some (or all) of the same?

I can understand that if a slacker has only a single linux system, and never runs any linux Virtual Machine under that host system, (or has several isolated instances of that single linux system), then the question of a network-aware display doesn't arise.

For myself, I have a number of linux systems all sitting near each other in one room, some self-contained with their own monitor, some with no monitor, and numerous VM's, some of which are linux. Why I operate like this can be summarised as chaotic, unplanned, evolution, plus a containable amount of hacking and just trial-and-error. But not relevant. What is relevant is that some are far more important to me than others, and all the important ones run slackware. And all are interconnected via a simple ethernet switch, plus (for some) an internet route.

One of the most important features of the linux ecosystem for me can be summarised as "every windowing/graphical application respects the DISPLAY environment variable". For me, it is a marvellous and useful fact that every single application that I have come across which runs under linux, and writes output to a windowing system, understands and respects DISPLAY. Of course, for most of them, this is because they use some standard toolkit e.g. gtk, Qt, or (in ancient times) Athena/libXaw, Motif,...). But, the fact is, I can depend on such a protocol to have every single application everywhere on my LAN display its output on my one high-res monitor sitting conveniently in front of me. (The only exception being needing to interoperate with a camera built-in to a different machine).

What about RDP / VNC? Are they the answer? I use them too, VNC extensively, and they are useful, but all fall down on mouse support, especially use of selections and Clipboard. For some scenarios, e.g. running emacs on a remote machine running xvncserver and vnc'ing to the xvncserver, I can get around some of the deficiencies with emacs key-bindings, but most apps don't provide such customizability. vnc is fine for such simple duties as running the console of a VirtualBox VM, but for any X-windows app in that VM, I export DISPLAY to my monitor.

So, for me, being able to export DISPLAY=MyXorgHost:0 everywhere is a cornerstone. How many other slackers also do? And (I wish I already knew from testing) what is the equivalent, if any, in the wayland way?

Now, for those who are concerned about network security, which is everyone : What is the concern with Xorg? I believe the main concern is that, if the Xorg server is started to listen on tcp, then it listens on 0.0.0.0:6000, open to the world, and xauth provides insufficient protection. And clearly the scale of potential damage is greater if Xorg runs as root, which I do. linux iptables firewalling provides some defence, which I also do, but relies on great care in constructing the iptables chains to prevent intruders while allowing all desired access. My answer to that was to hack Xorg to listen on a specific private local-LAN IP address, i.e. the ipaddress configured on MyXorgHost eth0. This one change reduces the gaping hole in security to a small chink in the woodwork, since an intruder has to devise some way of sending a packet addressed to my private IP address through my IP Service Provider's routers, which of course throw it away as unroutable. No-one has physical access to my machines except me. I do not run any internet browser on MyXorgHost. The only listening TCP sockets on this machine are sshd and Xorg. (I would like to shut off sshd too but too awkward)

I always build a complete Xorg from scratch for every deployment of Xorg on any system, including of necessity systems where no Xorg Server ever runs but which does run X-client apps, which I know is very unusual and which is, as a few others have confirmed, very difficult, at least for the first time. I am used to Xorg source code (at least, some of it), have contributed two (small) bug fixes to the maintainers over the years, and have made a number of other small changes of my own to make Xorg a bit more as I like it; and doing that is, I know, very atypical. I mention all this because , if other slackers do run their Xorg servers to listen on TCP, how do they address the security concern? Or is it the other way around -- the security concern is so great that they don't tell it to listen on TCP even though they would like to?

For completeness, I'll just mention that on MyXorgHost (the one which has the Xorg server controlling my one good monitor), I run sawfish WM and no full DE.

So that is quite a lot about me just so as to explain what I rely on and how I make it all work, and therefore why I am concerned about seeing all this go. And yes, I say go, because I fear it is a delusion to say "Xorg isn't going anywhere". Read h2_1's excellent append about bit-rot. If it is not actively maintained, then it will become unusable (at least for me). Although I'm sure I will figure something out when the crunch comes, I have no idea what or how much work it will take and how it will all fit together. And I am wondering if any of this is shared by others.
I just don't see any advantages so-called for xorg still. Again it was already pretty much stated even by the devs that the code is unwieldy. Also I am noticing tears when scrolling or playing videos, now to be fair maybe it is a Plasma5 thing, and I have experimented with the compositor, the NVIDIA compositor is on, and I played with the Plasma5 compositer, accuracy settings, bounced be openGL3.0 and 3.1 , and tweaked all other settings, but still notice vertical tears when scrolling through text and horizontal tears for videos on youtube. Maybe it is also a NVIDIA driver issue and I have always kept previous NVIDIA drivers just in case, and rolled back a few versions. Then again, I still notice some form of tearing or another when I was on MATE.

I am still going to reiterate that I just don't care what xorg offers in terms of legacy features. I still never needed to run a remote display from another machine even from my own network , best I ever did was ssh via text into another machine to run updates....thats it. Again I am almost 42 years old so I was born when X itself was first written, but I never started using Linux until 20 years ago almost, so again I never needed what x offered other than DRI 2d/3d local rendering; and thats still all I need. This is why I still maintain my stance, if you are running wayland - there is RDP or VNC, ok it is not the same as x / xorg , but who the hell really cares? Me? I don't care. I am just old enough to just want shit to work at this point, even though I always stayed with Slackware as my distro of choice. I know enough just to get a working Slackware desktop, but I am not really interesting in further tweaks though.

Quote:
Originally Posted by wpeckham View Post
X.Org is quite mature. Wayland is still under development at a rapid pace. I see no reason for a distribution like Slackware, LFS, Gentoo, that is source based to be quick to jump onto Wayland while it is such a moving target. Distributions like RHEL, SUSE, Ubuntu, Debian, and the more cutting-edge ARCH based distributions have more motivation to adopt (at least as an option).

If I were installing Slackware (I am not) I would get the gui going with X.Org first and then PLAY with Wayland if I wanted to, thus having X.Org to fall back on.
In fact, that is how I am running Plasma on Manjaro: Wayland by default but I can log off and back on and select X.Org running Plasma or Fluxbox as a start option. That way I can run tests, but also react to issues to determine if Wayland or X.Org are part of a problem or part of a solution.
[ My first degree was Physics, and I am BIG on performing experiments. ;-) ]
Yea mature in terms of being around a long time, but again if it were great then the devs themselves would be working further on xorg improvements , or let alone reconstituting the code, maybe removing features that are completely irrelevant today, cleaning up the code at all. Again I know right now and I have no problem admitting for selfish reasons, because even with all the different NVIDIA drivers I have and a major DE like KDE5 right now, I am still experiencing tearing of some sort one way or another; this to me is unaccceptable in "current year" , considering how "mature" as stated that xorg is. Again I am at the point of my life that I want things to 'just work', ableit I am using Slackware , and it is slowly starting that xorg isn't always 'just working' -- again maybe I could also jump over to AMD rather than NVIDIA for my next system, who knows - granted also I am running a GT710 , not the most powerful card obviously, but again I don't do current day gaming, I just want a proper 2d/3d acceleration for browsing the web, youtube videos, or at best the most I ever stressed out this card is when I emulate a Playstation1 or maybe Playstation2 at some point. Not exactly the powerhouse these days huh? I mean if a Pi5 can now emulate a Dreamcast.... Just saying.

Tangent aside, I want wayland to succed - though again clearly right now I am just using X11 for my Plasma5 session , but I am also trying to prepare.

Last edited by Jeebizz; 02-25-2024 at 12:56 PM.
 
1 members found this post helpful.
Old 02-25-2024, 02:18 PM   #206
bigbadaboum
Member
 
Registered: Apr 2023
Posts: 146

Rep: Reputation: 60
Quote:
Jeebizz
Senior Member
I am still experiencing tearing of some sort one way or another; this to me is unaccceptable in "current year"
sadly I can’t give you a solution, but I can help you not look for the wrong way.

I haven’t had tearing for a few years (but I had tearing at the beginning of Slackware 14.2).
-I keep xorg-server without version change.
-I keep xfwm without version change.

-I updated kernel but without branch change.
-I updated xf86-video-intel (and I recompile x11.SlackBuild).
 
Old 02-25-2024, 02:26 PM   #207
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by bigbadaboum View Post
sadly I can’t give you a solution, but I can help you not look for the wrong way.

I haven’t had tearing for a few years (but I had tearing at the beginning of Slackware 14.2).
-I keep xorg-server without version change.
-I keep xfwm without version change.

-I updated kernel but without branch change.
-I updated xf86-video-intel (and I recompile x11.SlackBuild).
I don't upgrade xorg, I just use what stock version is included - only "updates" is security patches that is applied.

Well again, it could be NVIDIA - and as I stated I am considering switching over to AMD for my next system; especially for wayland since AMD is friendlier and more supported than NVIDIA's rudimentary support for wayland. I do recall ever since I had this system (now almost 10 years old and only swapped out a dead GPU - both NVIDIA) I always experienced some form of tearing. This was also with the proprietary driver which I still use up to this point. Again maybe it is the chipset ,it could be down to that I don't know - but again something so basic in this day and age.

Again (sorry tangent again), I just want to use what works - I am not a libre-head , I'll never use a libre-compliant distro like Stallman envisions, why? Because well I have hardware that I need to WORK, this is why I also still avoid nouveau - even though I use one-display, Nouveau is still worse than the proprietary driver for me. Ergo, if wayland does eventually solve my issue and it is mature enough (good enough), I'll gladly switch - I don't care - I am not attached to x for any reason as I stated earlier - I need local DRI/2d/3d , and if wayland does it better - fine I'll use that when the time comes - I don't care if I can't somehow run a remote display like xorg... don't care, not my problem not my usecase and I don't care how selfish this sounds.

Last edited by Jeebizz; 02-25-2024 at 05:12 PM.
 
Old 02-26-2024, 02:16 AM   #208
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
I've often seen tearing with gl and xv backends of mplayer, but never with vdpau backend.
In other programs like glxgears for example, it's usually eliminated by forcing vsync in xfwm4 settings, and/or forcing triple buffering in xorg.conf.

Unrelated to screen tearing, I've seen someone on reddit complain that wayland on nvidia driver does not support hardware cursor.
So I guess the cursor will lag behind its actual position proportional to CPU load, like it does in video games without hardware cursor support.
 
1 members found this post helpful.
Old 02-26-2024, 06:54 AM   #209
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by elcore View Post
I've often seen tearing with gl and xv backends of mplayer, but never with vdpau backend.
In other programs like glxgears for example, it's usually eliminated by forcing vsync in xfwm4 settings, and/or forcing triple buffering in xorg.conf.

Unrelated to screen tearing, I've seen someone on reddit complain that wayland on nvidia driver does not support hardware cursor.
So I guess the cursor will lag behind its actual position proportional to CPU load, like it does in video games without hardware cursor support.
Well I still see tearing when I scroll through text (vertical), it was slightly less noticeable in MATE than plasma5 for some reason, and as for vpdau its only a thing for vlc or mplayer , but when you are watching youtube in a browser thats different even though there is 'hardware acceleration', and yea NVIDIA and wayland is pretty much a no-go - which is why I stated I am considering AMD for my gpu for my next system. Point is this 'compositor' i am using for nvidia and kde I would have thought should eliminate this , or unless maybe it is because my gpu chipset I don't know - I am trying to be somewhat diplomatic and not totally blame x, but on the other hand I have tried many version of the 470 proprietary driver. All I know though is I have tweaked and tweaked, jumped from MATE to Plasma5; and it is still noticeable to an extent, I could still accept this 10-15 years ago, but no longer.
 
Old 02-26-2024, 08:46 AM   #210
John Lumby
Member
 
Registered: Oct 2008
Posts: 74

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Jeebizz View Post
Well I still see tearing
I can't remember ever experiencing screen tearing, so have no first-hand advice, but based on what I think I remember -
1. tearing indicates some kind of mismatch between 3 factors :
video controller
monitor
Xorg mode settings , Specifically all the DotClock and Htiming and Vtiming numbers
(explicitly specified in xorg.conf, derived or sensed by EDID)
2. have you looked for (WW) warning messages in the Xorg.0.log?
3. have you checked what mode settings Xorg is using, and how it arrived at those?
4. if all else fails, have you tried explicitly setting the video mode in your xorg.conf?


I know this sounds archaic and applicable to the days of Cathode-Ray Monitors, and that nowadays settings are all supposed to be set to the correct value automatically by EDID etc, but I have myself sometimes been surprised by what Xorg comes up with in certain configurations. Or maybe you specified a mode somewhere long ago and then forgot to remove it. Worth checking ...
 
  


Reply

Tags
kde, xorg



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Save development time and effort with Ruby LXer Syndicated Linux News 0 04-07-2016 08:21 AM
LXer: Mutter Wayland 3.11.2 Now Syncs Keymap from X.Org to Wayland LXer Syndicated Linux News 0 12-04-2013 02:15 AM
Problem: xorg 1.7.7 on Mandriva 2010.2 / ATI X600: X11 crashing or slowing down grover Linux - Software 10 06-16-2011 01:46 AM
Future !X ? Wayland : X - what is wayland? serafean Linux - General 5 03-04-2011 11:09 AM
LXer: Is Linux Kernel Development Slowing Down? LXer Syndicated Linux News 0 12-02-2010 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration