[SOLVED] startup autoexec type file? (to set resolution mainly)
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
startup autoexec type file? (to set resolution mainly)
I installed SliTaz on one of my old PCs and want to issue some startup commands. In particular xrandr to change resolution and numlockx to turn on numlock.
I've tried .xprofile, it doesn't use that (verified by trying to touch a file).
I'm new to SliTaz but somewhat familiar with Linux from using Bodhi(ubuntu) already, but bodhi has its own distro-specific startup file so I'm not familiar with more generic solutions...
I use a global application method, putting a one line script containing xrandr somewhere in /etc/X11/. In Debian that script is in /etc/X11/Xsession.d/.
In particular xrandr to change resolution and numlockx to turn on numlock.
These need to be executed after Xorg is started.
Problem is, I have no idea HOW slitaz starts Xorg?
And what window manager?
On my system (arch linux) Xorg looks for & excutes ~/.xinitrc.
I tried putting something in /etc/X11/xinit/xinitrc.d but that doesn't get executed...
Did you make it an executable file using chmod? Did you restart Xorg or the PC after creating it?
Quote:
Problem is, I don't really even know what xorg is
I'm pretty sure if you asked Google it would give you some links that would explain. It should also provide links to restarting Xorg if you ask for it. https://www.x.org/ would be a start, but it might not have the kind of explanation you're looking for, since it's foundational, not something one normally interacts with directly. Not everyone even uses it. There's a newfangled substitute for it called Wayland that still can be pretty buggy.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.