You are not logged in.
I wasn't able to test opening anything else.
Why? To get the input focus to urxvt, move the mouse into the window.
The note that says
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.
ls -ld /home/four /home/four/.Xauthority*Online
When I did startx urxvt, the only application I was unable to launch d-menu to start other programs. This is where the issue is. Once programs such as urxvt are open, they work completely normal (at least to my knowledge), with normal cpu usage. However, only during the launch process does the program slowdown and hog the CPU.
-rw------- 1 root root 102 Mar 14 17:33 /home/four/.Xauthority
-rw------- 2 four users 0 Mar 14 17:51 /home/four/.Xauthority-c
-rw------- 2 four users 0 Mar 14 17:51 /home/four/.Xauthority-lMy .xinitrc file is the same as the default file, with startx added to the end. Can I remove the xterm lines? I don't think I have xterm installed anyways.
Last edited by jiv222 (2019-03-14 22:43:47)
Offline
My .xinitrc file is the same as the default file, with startx added to the end. Can I remove the xterm lines? I don't think I have xterm installed anyways.
Please post the contents of .xinitrc (not a description).
Offline
jiv222 wrote:My .xinitrc file is the same as the default file, with startx added to the end. Can I remove the xterm lines? I don't think I have xterm installed anyways.
Please post the contents of .xinitrc (not a description).
#!/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 login &
exec i3Offline
twm & xclock -geometry 50x50-1+1 & xterm -geometry 80x50+494+51 & xterm -geometry 80x20+494-0 & exec xterm -geometry 80x66+0+0 -name login & exec i3
Your exec i3 line will never run. Nothing after "exec xterm ..." will run. Comment out (or remove) all of the twm and xterm lines, leaving only "exec i3" and the rest of the stuff at the beginning.
Offline
jiv222 wrote:twm & xclock -geometry 50x50-1+1 & xterm -geometry 80x50+494+51 & xterm -geometry 80x20+494-0 & exec xterm -geometry 80x66+0+0 -name login & exec i3Your exec i3 line will never run. Nothing after "exec xterm ..." will run. Comment out (or remove) all of the twm and xterm lines, leaving only "exec i3" and the rest of the stuff at the beginning.
Okay, fixed it. Now i3 won't start at all. Running startx causes a black screen.
Offline
Post the Xorg log from your latest attempt.
Offline
Okay. I'm gonna temporarily revert to the previous version of my .xinitrc just so I can copy and paste the log.
Offline
You can also use a pastebin client: https://wiki.archlinux.org/index.php/Li … in_clients
If you restart X, make sure you get the correct log.
Offline
You can also use a pastebin client: https://wiki.archlinux.org/index.php/Li … in_clients
If you restart X, make sure you get the correct log.
Perfect, thanks a lot. I kept the same .xinitrc and the error said this is the log.
Offline
Your X11 server runs very fine for 40ms and then terminates cleanly because your xinitrc is fundamentally broken and actually NOT the default one + adds.
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login & # the script ends here, is replaced by an xterm and that forks so xinit continues and stops the X11 server
exec i3Don't randomly put "&" to any line…
Ensure
which i3
which xterm # pacman -Syu xtermand replace that fragment w/
xterm -geometry 80x50+494+51 &
exec i3This will get you one xterm and i3, assuming both are installed (from your "only black screen" I assume you're getting X11, no xterm and an unconfigured i3, see https://wiki.archlinux.org/index.php/I3)
Online
I don't think I even have xterm installed rn. Is it a required package?
Offline
To perform seth's test it is.
Offline
It is also if you want to get anything but a black screen from even a working variant of your xinitrc…
Online
Your X11 server runs very fine for 40ms and then terminates cleanly because your xinitrc is fundamentally broken and actually NOT the default one + adds.
twm & xclock -geometry 50x50-1+1 & xterm -geometry 80x50+494+51 & xterm -geometry 80x20+494-0 & exec xterm -geometry 80x66+0+0 -name login & # the script ends here, is replaced by an xterm and that forks so xinit continues and stops the X11 server exec i3Don't randomly put "&" to any line…
Ensure
which i3 which xterm # pacman -Syu xtermand replace that fragment w/
xterm -geometry 80x50+494+51 & exec i3This will get you one xterm and i3, assuming both are installed (from your "only black screen" I assume you're getting X11, no xterm and an unconfigured i3, see https://wiki.archlinux.org/index.php/I3)
Alright. Well, I deleted .Xauthority before starting x, since I kept getting errors about the file being unreadable. i3 started correctly like this. As for your test, I changed .xinitrc and it started both xterm and i3. Xterm starts immediately, then after some delay, i3 launches behind xterm. So it seems my .xinitrc file is fixed now, but still suffering from whatever is causing everything to take forever to launch. Also, I just looked at neofetch, and the GPU is specified as my 1050ti card. Screenfetch shows only 'intel'.
Offline
Yeah, back to base #1.
Skip i3, just "startx xterm" or "startx urxvt"
Start other processes from there (not dmenu or whatever) - you should be able to move the pointer into the terminal window and run another "urxvt" to check whether that start's fast.
Stuff like
urxvt -geometry +300+300should allow you to keep the windows somewhat apart w/o a WM.
Did you delete all xauthority files?
Online
Yeah, back to base #1.
Skip i3, just "startx xterm" or "startx urxvt"
Start other processes from there (not dmenu or whatever) - you should be able to move the pointer into the terminal window and run another "urxvt" to check whether that start's fast.
Stuff likeurxvt -geometry +300+300should allow you to keep the windows somewhat apart w/o a WM.
Did you delete all xauthority files?
Yes I deleted the xauthority files, but .Xauthority was recreated.
Offline
I think I may have found what is going wrong. Based on these errors, for some reason, my system is trying to utilize my GPU, while it is in power state D3 (which I'm pretty sure means its off). After running startx urxvt and trying to launch another urxvt, these errors were in dmesg.
[14058.076125] pci 0000:01:00.0: Refused to change power state, currently in D3
[14129.671938] CPU0: Core temperature above threshold, cpu clock throttled (total events = 11)
[14129.671940] CPU7: Package temperature above threshold, cpu clock throttled (total events = 15)
[14129.671975] CPU11: Package temperature above threshold, cpu clock throttled (total events = 15)
[14129.671977] CPU0: Package temperature above threshold, cpu clock throttled (total events = 15)
[14129.672001] CPU6: Core temperature above threshold, cpu clock throttled (total events = 11)
[14129.672002] CPU5: Package temperature above threshold, cpu clock throttled (total events = 15)
[14129.672004] CPU1: Package temperature above threshold, cpu clock throttled (total events = 15)
[14129.672005] CPU6: Package temperature above threshold, cpu clock throttled (total events = 15)
[14129.672014] CPU2: Package temperature above threshold, cpu clock throttled (total events = 15)
[14129.672014] CPU8: Package temperature above threshold, cpu clock throttled (total events = 15)
[14129.672015] CPU4: Package temperature above threshold, cpu clock throttled (total events = 15)
[14129.672016] CPU9: Package temperature above threshold, cpu clock throttled (total events = 15)
[14129.672017] CPU10: Package temperature above threshold, cpu clock throttled (total events = 15)
[14129.672018] CPU3: Package temperature above threshold, cpu clock throttled (total events = 15)01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)Last edited by jiv222 (2019-03-16 03:24:42)
Offline
ANd why would it do that?
printenvOnline
ANd why would it do that?
printenv
SHELL=/bin/zsh
LSCOLORS=Gxfxcxdxbxegedabagacad
LESS=-R
FREETYPE_PROPERTIES=truetype:interpreter-version=40
GTK_MODULES=canberra-gtk-module
XDG_SEAT=seat0
PWD=/home/four
LOGNAME=four
XDG_SESSION_TYPE=tty
XAUTHORITY=/home/four/.Xauthority
DESKTOP_STARTUP_ID=i3/i3-sensible-terminal/867-7-jiv222_TIME5928271
WINDOWPATH=1
HOME=/home/four
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
INVOCATION_ID=5234108c0ea24ca0a6f456a1a2a8f27e
XDG_SESSION_CLASS=user
TERM=rxvt-unicode-256color
ZSH=/home/four/.oh-my-zsh
USER=four
DISPLAY=:0
SHLVL=5
PAGER=less
XDG_VTNR=1
XDG_SESSION_ID=1
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
LC_CTYPE=en_US.UTF-8
XDG_RUNTIME_DIR=/run/user/1000
JOURNAL_STREAM=9:14959
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MAIL=/var/spool/mail/four
OLDPWD=/home/four
WINDOWID=48234506
COLORFGBG=default;default
COLORTERM=rxvt
_=/usr/bin/printenvI believe DISPLAY should be eDP-1 rather than just 0.
Offline
No, DISPLAY should certainly be ":0" as it is.
I had hoped from some DRI_PRIME
Why is this "XDG_SESSION_TYPE=tty"?
loginctl show-session $XDG_SESSION_IDCeterum censeo: please drop OMZ (ensure it's not source by your shell in any way or kind) and try again.
Online
No, DISPLAY should certainly be ":0" as it is.
I had hoped from some DRI_PRIMEWhy is this "XDG_SESSION_TYPE=tty"?
loginctl show-session $XDG_SESSION_IDCeterum censeo: please drop OMZ (ensure it's not source by your shell in any way or kind) and try again.
Id=1
User=1000
Name=four
Timestamp=Sat 2019-03-16 10:52:25 EDT
TimestampMonotonic=64145812
VTNr=1
Seat=seat0
TTY=tty1
Remote=no
Service=login
Scope=session-1.scope
Leader=574
Audit=1
Type=tty
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=1552747945539999
IdleSinceHintMonotonic=64248021
LockedHint=noHow do I make sure oh-my-zsh does what you say? I'm not quite sure how to 'drop OMZ'
Offline
How did you install it?
Make sure there're no traces in your zshrc, in doubt remove the package.
Online
How did you install it?
Make sure there're no traces in your zshrc, in doubt remove the package.
Can just removing
source $ZSH/oh-my-zsh.shin .zshrc take care of it? It is not referenced anywhere else in .zshrc.
Offline
If it's not invoked indirectly by some other sourced file/script (or referenced in your zprofile) that should do.
Edit: you can also just "chsh -s /bin/bash"
Last edited by seth (2019-03-16 15:15:37)
Online