This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How do I use login scripts?

Tags: None
(comma "," separated)
tuxthepenguin
Registered Member
Posts
1
Karma
0

How do I use login scripts?

Mon Nov 07, 2022 12:24 pm
I'm running Arch in my system and I wanted to spin down my HDD on startup. Adding a systemd module from archwiki doesn't work because the drive spins up again as soon as SDDM appears. I tried to make a following script and add it to "start on login" in the settings.
Code: Select all
#!/bin/bash
hdparm -y -S 30 /dev/sda

I tried to add sudo but still nothing happens when I start up the PC or login, the drive continues to spin and make noise. The script executes normally when used in konsole. Please help.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell