You are not logged in.
Hello,
I got rid of kde plasma because i didnt use it anymore and afterthat the sddm login manager didnt work properly anymore so i got rid of that aswell and i am now using tty login and startx.
I wanted to do the startx automaticly after i log in so i added:
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
exec startx
fito my ".bash_profile "
But i noticed if i automaticly do startx this way i have huge performance issues.
The cpu load wich sits normaly around 0.10-0.30 is now always around 0.50 and shutdown takes a long time.
Also when i boot and shutdown my laptop my laptop fans start spinning at max.
I think this is caused by my videocard because mormaly the fans start spinning when my load is around 1.
Does anyone know what causes this or how i can automaticly start x propperly widout the xorg info being printed after startx?
When i remove the code from my .bash_profile everything functions properly.
I have a gtx 1070 mobile.
Last edited by philipW (2017-10-19 12:03:43)
Offline
Are you using nvidia proprietary driver ?
what is in your ~/.xinitrc ?
also post full ~/.bash_profile please
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Are you using nvidia proprietary driver ?
what is in your ~/.xinitrc ?
also post full ~/.bash_profile please
yes i am nouveau gives me huge performance issues.
This is my .xinitrc
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
numlockx &
dbus-update-activation-environment --systemd DISPLAY
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) export SSH_AUTH_SOCK
xrdb -merge ~/.Xresources
exec i3And this is my .bash_profile
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
#if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
# exec startx
#fiOffline
Your ~/.xinitrc is missing a vital section...
https://wiki.archlinux.org/index.php/Xinit#xinitrc
Offline
Your ~/.xinitrc is missing a vital section...
https://wiki.archlinux.org/index.php/Xinit#xinitrc
Can you point me in the right direction?
Offline
Look at the highlighted boxes that say "Note:" in bold font ...
Why do you have the dbus-update-activation-environment call there?
Did you ever check *what* loads your CPU?
Offline
Note: At the very least, ensure that the last if block in /etc/X11/xinit/xinitrc is present in your .xinitrc file to ensure that the scripts in /etc/X11/xinit/xinitrc.d are sourced.
you mean this?
If this is my /etc/X11/xinit/xinitrc
#!/bin/sh
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
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name loginI should include this in my xinitrc?
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name loginOffline
Look at the highlighted boxes that say "Note:" in bold font ...
Why do you have the dbus-update-activation-environment call there?
Did you ever check *what* loads your CPU?
No i dindt.
I have no idea what it exactly does.
I read on the wiki that i needed to include that if i want to unlock the gnome keyring at login.
https://wiki.archlinux.org/index.php/GN … side_GNOME
Last edited by philipW (2017-10-20 08:45:50)
Offline
No i dindt.
Well, maybe do?
I should include this in my xinitrc?
I refuse to give you an answer here. You cited the relevant note from the wiki but apparently did not read it.
Offline
philipW wrote:No i dindt.
Well, maybe do?
philipW wrote:I should include this in my xinitrc?
I refuse to give you an answer here. You cited the relevant note from the wiki but apparently did not read it.
I added
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name loginto my xinitrc
I completly understand your point of view but i was just asking for confirmation because my understanding of this code is minimal.
I also was unaware
dbus-update-activation-environment --systemd DISPLAYhad anything to do with the loading of my cpu so i am researching that now.
Offline
How are twm etc. in "the last if block" or do they "ensure that the scripts in /etc/X11/xinit/xinitrc.d are sourced"?
You're doing something with the display variable and then a display variable test controls the behavior of .bash_profile - maybe just test whether that has impact by removing/commenting the gnome-keyrings stuff from your xinitrc?
Offline