WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: xset commands  (Read 735 times)

Offline lakesnative

  • Newbie
  • *
  • Posts: 22
xset commands
« on: April 05, 2024, 03:38:39 PM »
Hello all (happy Friday nite!).

I installed tiny core 14.0 just shortly before the release of tiny core 15.0
Did a frugal HDD install and after a moderate learning curve and lots of help from the forum, got what has been a nice stable system running on an old Acer Aspire 3680, which must have been a fairly robust computer at the time.  Someone had discarded it for junk after removing the hard disk drive. I was able to purchase a 500 gb laptop drive on amazon for around $17 delivered (or something very close to that without going back and checking).

My current question for the forums is:  if I want to add this xset command  [xset s off -dpms] so that it's executed at boot up where/how do I do that.  From reading online it would seem to go in the .xsession file located in my home directory,  but I don't want to break anything at the moment. 

Here is my current .xsession file:
Code: [Select]
/usr/local/bin/Xvesa -br -screen 1024x768x24 -shadow -mouse /dev/input/mice,5 -nolisten tcp -I >/dev/null 2>&1 &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x $HOME/.setbackground ] && $HOME/.setbackground
[ -x $HOME/.mouse_config ] && $HOME/.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d "/usr/local/etc/X.d" ] && find "/usr/local/etc/X.d" -type f -o -type l | sort | while read F; do . "$F"; done
[ -d "$HOME/.X.d" ] && find "$HOME/.X.d" -type f -o -type l | sort | while read F; do . "$F"; done

On a side note,  in tweaking the program I'm using I discovered xfe file manager which has been a wonderful addition.  It's so easy to associate files with a program and then just click to open.  I had used rox-filer often,  but I must say xfe seems to be a lot easier.

- Lakesnative -

    [Edit]: Added code tags.  Rich
« Last Edit: April 05, 2024, 04:54:57 PM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11283
Re: xset commands
« Reply #1 on: April 05, 2024, 04:55:43 PM »
Hi lakesnative
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly. Code tags also automatically add horizontal and or vertical scrollbars
to accommodate long lines and listings.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11283
Re: xset commands
« Reply #2 on: April 05, 2024, 04:56:08 PM »
Hi lakesnative
Create a file (any name you want) in your .X.d directory
containing the following:
Quote
xset s off -dpms &
.xsession will automatically run the command after the
GUI is up and running.

Offline lakesnative

  • Newbie
  • *
  • Posts: 22
Re: xset commands
« Reply #3 on: April 05, 2024, 05:32:05 PM »
thank you for the solution once again Rich  and for explaining the way to post code in the forum
I considered posting it as an image file, but that was not as easy as I thought it would be last time I tried that due to the size of the file.

Definitely glad I posted the question of how to add the xset command and didn't experiment because I would have done it wrong! 

- Lakesnative -

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11283
Re: xset commands
« Reply #4 on: April 05, 2024, 05:47:32 PM »
Hi lakesnative
... I considered posting it as an image file, ...
We try to discourage posting information in the form of images.
Information contained in images won't show up in forum searches.