Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot use local .xinitrc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
berzs
n00b
n00b


Joined: 20 Mar 2020
Posts: 23
Location: Latvija

PostPosted: Fri Sep 04, 2020 1:41 pm    Post subject: Cannot use local .xinitrc Reply with quote

This started happening out of the blue today, but running startx with ~/.xinitrc existing doesn't work and reports xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted) with no other error in Xorg.0.log. This still starts but programs report display variable missing. Whether or not i manually set it. The weird thing is, if i remove .xinitrc, it uses the system default no problem. But as soon as i use .xinitrc my issue comes back. I have idea what could've caused this. I had a hang, rebooted, and this has been happening since.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2420
Location: Frankfurt, Germany

PostPosted: Fri Sep 04, 2020 2:02 pm    Post subject: Reply with quote

Please post your .xinitrc :)
Back to top
View user's profile Send private message
berzs
n00b
n00b


Joined: 20 Mar 2020
Posts: 23
Location: Latvija

PostPosted: Fri Sep 04, 2020 2:07 pm    Post subject: Reply with quote

Code:
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    /usr/bin/xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    /usr/bin/xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    /usr/bin/xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    /usr/bin/xmodmap $usermodmap
fi

# start some nice programs

export QT_QPA_PLATFORMTHEME=qt5ct
export PATH="$HOME/bin:$HOME/script:$PATH"
upower.sh&
xbacklight -set 30
picom&
#datedzen.sh&
unclutter -root -not Minecraft -idle 5&
#playingdzen.sh&
#xbattmon&
#tint2&
#$HOME/.fehbg&
LC_ALL=en_US.UTF8 exec icewm

this was my xinitrc, but somehow picom broke xorg? im so confused, but it works so this issue is no more and i'll not even bother trying to understand
Back to top
View user's profile Send private message
figueroa
l33t
l33t


Joined: 14 Aug 2005
Posts: 756
Location: Lower right-hand corner USA

PostPosted: Mon Sep 28, 2020 2:55 am    Post subject: Reply with quote

Reduce your .xinitrc to the minium necessary to bring up your WM. Then you can troubleshoot where the problem one line at a time. Here is mine. Modify to suit your needs:
Code:
setxkbmap -option terminate:ctrl_alt_bksp
xhost +local:root > /dev/null
/usr/bin/numlockx on
dbus-launch --sh-syntax --exit-with-session startlxde

_________________
Andy Figueroa
andy@andyfigueroa.net Working with Unix since 1983.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum