You are not logged in.

#1 2024-03-30 12:16:55

Ranon
Member
Registered: 2023-09-14
Posts: 27

Emacs Displays other windows - not interactable - Other issues

Hello all,

System -
Arch Linux (6.6.23-1-lts 86_64)
i3 WM (Version 4.23)
Emacs (Version 29.3)
DoomEmacs (minor configuration) (Doomcore v3.0.0-pre / Doommodules v24.02.0-pre)
Brave Browser (v123.1.64.113)
Edge Browser (Version 122.0.2365.92 (Official build) (64-bit))

I have quite a unique issue, I have a more detailed report here https://docs.google.com/document/d/1E78 … sp=sharing

TLDR: I updated my system using pacman followed by paru.
Paru was not working and had to re-install it.

After this my emacs was acting strange where it would copy the visuals with other active apps and will not respond to keyboard inputs.

I have put all the info in the above link including screenshots so if anyone has any ideas please let me know.

All the best
Ranon

Offline

#2 2024-03-30 12:38:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,892

Re: Emacs Displays other windows - not interactable - Other issues

There's a bug  in libx11 1.8.8, you could opt for downgrading to 1.8.7

There's a thread here somewhere but can't be arsed to dig it up right now. https://bbs.archlinux.org/viewtopic.php?id=294301

Last edited by V1del (2024-03-30 12:39:39)

Offline

#3 2024-03-30 14:31:13

Ranon
Member
Registered: 2023-09-14
Posts: 27

Re: Emacs Displays other windows - not interactable - Other issues

Thanks for the help. I attempted to use pacman with -U to downgrade the libx11 package using the this command

sudo pacman -U libx11-1.8.7-1-x86_64.pkg.tar.zst

or

sudo pacman -U libx11-1.8.8-1-x86_64.pkg.tar.zst

I used the -Q flag to discover that the version I am using is libx11 1.8.8-2 if that helps.

Offline

#4 2024-03-30 17:01:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,892

Re: Emacs Displays other windows - not interactable - Other issues

For the -U command you need to provide the full file path, i.e.

sudo pacman -U /var/cache/pacman/pkg/libx11-1.8.8-1-x86_64.pkg.tar.zst

assuming you didn't clear the cache yet. Otherwise see the other options: https://wiki.archlinux.org/title/Downgr … ge_version

Offline

#5 2024-04-01 10:34:22

Ranon
Member
Registered: 2023-09-14
Posts: 27

Re: Emacs Displays other windows - not interactable - Other issues

V1del wrote:

For the -U command you need to provide the full file path, i.e.

sudo pacman -U /var/cache/pacman/pkg/libx11-1.8.8-1-x86_64.pkg.tar.zst

assuming you didn't clear the cache yet. Otherwise see the other options: https://wiki.archlinux.org/title/Downgr … ge_version


Thanks for the info. I downgraded the package to 1.8.7-1 and still have a similar issue but there are some visual differences based on a couple of tests
.

Offline

#6 2024-04-01 13:02:06

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: Emacs Displays other windows - not interactable - Other issues

After this my emacs was acting strange where it would copy the visuals with other active apps and will not respond to keyboard inputs.

So these are two separate issues, one of them being fixed but the visual glitches remain?
Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General and ideally non-tiny versions of the illustrating screenshots…

Offline

#7 2024-04-03 10:19:51

Ranon
Member
Registered: 2023-09-14
Posts: 27

Re: Emacs Displays other windows - not interactable - Other issues

Hey Seth thanks for the info.

Here is a link to larger versions of the pictures
https://drive.google.com/drive/folders/ … sp=sharing

As for the xorg log. I read some of the documentation you provided and looked for the Xorg.log file but could not find it.

When Xorg is run in rootless mode, Xorg logs are saved to ~/.local/share/xorg/Xorg.log.

...

It does mention that I have to switch it on before I can redirect the logs but am unsure if I need to restart my computer in order for it to work or not.

Thanks in advance

EDIT: Found the .xorg.log file in my home directory but when I tried to output the contents through cat I got a message saying "Only console users are allowed to run the X server" before giving up.

Last edited by Ranon (2024-04-03 12:36:55)

Offline

#8 2024-04-03 13:48:55

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: Emacs Displays other windows - not interactable - Other issues

cat ~/.local/share/xorg/Xorg.0.log
cat ~/.local/share/xorg/Xorg.0.log | curl -F 'file=@-' 0x0.st # upload

Offline

#9 2024-04-04 14:29:09

Ranon
Member
Registered: 2023-09-14
Posts: 27

Re: Emacs Displays other windows - not interactable - Other issues

seth wrote:
cat ~/.local/share/xorg/Xorg.0.log
cat ~/.local/share/xorg/Xorg.0.log | curl -F 'file=@-' 0x0.st # upload
[ranon@RanonArch ~]$ cat ~/.local/share/xorg/Xorg.0.log
cat: /home/ranon/.local/share/xorg/Xorg.0.log: No such file or directory
[ranon@RanonArch ~]$ cat ~/.local/share/xorg/Xorg.0.log | curl -F 'file=@-' 0x0.st # upload
cat: /home/ranon/.local/share/xorg/Xorg.0.log: No such file or directory
451 Unavailable For Legal Reasons[ranon@RanonArch ~]$

Offline

#10 2024-04-04 14:33:22

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: Emacs Displays other windows - not interactable - Other issues

1. where exactly is your ".xorg.log file in my home directory"?
2. How exactly do you start X11 (SDDM, GDM, lightdm, startx, …)
3. Seems you're barred from 0x0.st (likely courtesy of your local dictator), you'll have to upload it elsewhere

Offline

#11 2024-04-06 01:39:16

Ranon
Member
Registered: 2023-09-14
Posts: 27

Re: Emacs Displays other windows - not interactable - Other issues

1) Here is part of the output after ls -la command

https://drive.google.com/file/d/1IzbKhhKLmnXwGDelT1YvnNgX1CbUOOoM/view?usp=drive_link

2) Light DM - something that might be related.. I attempted to config a new wallpaper but it never worked. I changed my local config file but Lighdm might be using Root to run maybe?

3) A little confused what to upload. I will look into 0x0.st now

Last edited by Ranon (2024-04-06 01:51:07)

Offline

#12 2024-04-06 06:44:20

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: Emacs Displays other windows - not interactable - Other issues

1. Don't post images of text, post the text
2. Why are there root owned files in that location? Are you trying to run X11/login as root? Don't!
3. w/ lightdm the X11 log will be in /var/log/

Offline

#13 2024-04-06 10:43:32

Ranon
Member
Registered: 2023-09-14
Posts: 27

Re: Emacs Displays other windows - not interactable - Other issues

1) Will do
2) I don't remember changing permissions to root, I can change it though but not sure if thats a good idea at this stage
This is the only thing that it reads:

[ranon@RanonArch ~]$ cat .xprofile
export QT_IM_MODULE='fcitx'
export GTK_IM_MODULE='fcitx'
export SDL_IM_MODULE='fcitx'
export XMODIFIERS='@im=fcitx'

3) Here is the report  Xorg.0.log

Having a quick look at the report I think I might have multiple drivers installed for the graphics card but only the Nvidia one is activating but not correct, there are a some errors at line 185+ suggesting that ACPI event daemon has an issue. No idea what that is but will look it up.

My current best guess at fixing the issue is to uninstall the un-needed drivers, check the Nvidia driver config and change the permissions of xprofile back to the user.
Will wait for a response before doing anything.

Last edited by Ranon (2024-04-06 10:58:53)

Offline

#14 2024-04-06 15:39:43

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: Emacs Displays other windows - not interactable - Other issues

Enable https://wiki.archlinux.org/title/NVIDIA … de_setting - use the "nvidia_drm.modeset=1" kernel parameter (modprobe.conf won't do!)
Then report back on the situation w/ an updated xorg log if the issue remains.

Offline

#15 2024-04-09 15:45:06

Ranon
Member
Registered: 2023-09-14
Posts: 27

Re: Emacs Displays other windows - not interactable - Other issues

seth wrote:

Enable https://wiki.archlinux.org/title/NVIDIA … de_setting - use the "nvidia_drm.modeset=1" kernel parameter (modprobe.conf won't do!)
Then report back on the situation w/ an updated xorg log if the issue remains.


Hey, I tried using modprobe to change the parameter

modprobe nvidia_drm modeset=1 

and

 nvidia_drm.modeset=1 

but when I tried to verify it using

sudo cat /sys/module/nvidia_drm/parameters/modeset

it kept returning N which I believe means it is not loaded properly. Not sure if I typed it in wrong or something.
I rebooted a couple of times and it still returned N

Offline

#16 2024-04-09 15:46:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,892

Re: Emacs Displays other windows - not interactable - Other issues

Which bootloader are you using and into which file did you write that? With GRUB you'll have to regenerate the config.

Offline

#17 2024-04-09 15:48:26

Ranon
Member
Registered: 2023-09-14
Posts: 27

Re: Emacs Displays other windows - not interactable - Other issues

V1del wrote:

Which bootloader are you using and into which file did you write that? With GRUB you'll have to regenerate the config.

I am using Grub2 I believe

Messing with that makes me super nervous What command do I use?

Any reply will come after a backup and restore point set.

Last edited by Ranon (2024-04-09 15:57:04)

Offline

#18 2024-04-09 16:05:53

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: Emacs Displays other windows - not interactable - Other issues

What does you /etc/default/grub look like and did you run grub-mkconfig after altering it?

Offline

#19 2024-04-09 17:16:58

Ranon
Member
Registered: 2023-09-14
Posts: 27

Re: Emacs Displays other windows - not interactable - Other issues

seth wrote:

What does you /etc/default/grub look like and did you run grub-mkconfig after altering it?

Grub output 

and I do not remember altering it at any point.

Since we are talking about GRUB I wanted to check a couple of things.

I installed BTRFS and I believe snapshots are being created but I don't understand how to verify that while the PC is running on the disk I want to snapshot.

Last edited by Ranon (2024-04-09 17:23:11)

Offline

#20 2024-04-09 19:48:01

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: Emacs Displays other windows - not interactable - Other issues

If you didn't edit it, how do you expect the kernel parameters to apply?
https://wiki.archlinux.org/title/NVIDIA … de_setting also links the relevant wiki on how to do that.

Off topic:
https://wiki.archlinux.org/title/Btrfs#Snapshots
https://man.archlinux.org/man/core/btrf … olume.8.en

btrfs subvolume list [options] <path

Offline

#21 2024-04-30 02:42:52

Ranon
Member
Registered: 2023-09-14
Posts: 27

Re: Emacs Displays other windows - not interactable - Other issues

Hello all, sorry for the late reply had some college work to do.

So I tried running

modprobe nvidia_drm modeset=1 
mkinitcpio
reboot

to see if that would make the change stick but it failed.

I then edited the /etc/mkinitcpio.conf file as suggested here: https://wiki.archlinux.org/title/Kernel … _KMS_start then repeating the step above but

sudo cat /sys/module/nvidia_drm/parameters/modeset

kept returning "N" which leads me to assume it did not stick.

In the links provided I did not find anything GRUB specific when it comes to altering conf files and I am really hesitant to experiment with that unless I know specifically what needs to be done. So any guidance on the specific way any GRUB files should be altered would be a massive help.

Note: I attempted to use

nvidia-config

but it returned with some errors including "WARNING: Unable to locate/open X configuration file". Not sure if related to this specific issue but that is something I also want to look into .

Off Topic: I was looking into why my Display Manager was running in Root https://wiki.archlinux.org/title/Xorg#Rootless_Xorg and noticed that LightDM is always root?
also the

 ps -o user= -C Xorg

command returned as root so is that to assume that my whole system is running as root instead of the account I am logged in as?

Not only do I want to fix that but I understand that root and accounts have separate config files. Is it possible that running X as root is affecting the configuration files that are being read so any time I am trying to change it the computer is reading the wrong thing when I log into an account?

Update: Just as a rando thought I tried running

sudo emacs

and it ran fine with a default configuration but without the DoomEmacs additions.
So I am not sure if the issue is with the graphics card / local config files (Doom Emacs)/ or that the changes I am attempting to make are only affecting root since that X is currently running as root.

Thanks for the help so far
Any info would be greatly appreciated.

All the best

Last edited by Ranon (2024-04-30 02:48:56)

Offline

#22 2024-04-30 08:15:37

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: Emacs Displays other windows - not interactable - Other issues

So I tried running … I then edited the /etc/mkinitcpio.conf

Just following the linked wiki to set the parameters at the kernel commandline wasn't an option? You'd rather come up with a bunch of nonsense?

"nvidia-config" is a cairo-dock plugin and don't run nvdia-xconfig, you'll make evreything worse.

sudo emacs

don't do that.

So I am not sure if the issue is with the graphics card / local config files (Doom Emacs)/ or that the changes I am attempting to make are only affecting root since that X is currently running as root.

create a fresh user account and login as that and run emacs from there or just disable doom emacs?

or that the changes I am attempting to make are only affecting root since that X is currently running as root.

No. Stop thinking about that - it's nonsense.
Lightdm isn't Xorg and even if/though lightdm will (likely) run the Xorg process as owned by UID0, that's legacy/normal and UNDER NO CIRCUMSTANCES IT'S A GOOD IDEA TO RUN X11 CLIENTS (or other fat gui stuff) AS ROOT

Offline

Board footer

Powered by FluxBB