Score:0

I need to add Numlock=on in the [General] section of sddm configuration on Ubuntu Focal, where is sddm.conf?

de flag

I need to add Numlock=on in the [General] section of the sddm configuration, but I cannot find it :

$ man sddm.conf | grep -1 sddm.conf
NAME
       sddm.conf - sddm display manager configuration

--

       /usr/lib/sddm/sddm.conf.d
              System configuration directory

       /etc/sddm.conf.d
              Local configuration directory

       /etc/sddm.conf
              Local configuration file for compatibility
$ ls /usr/lib/sddm/sddm.conf.d/ /etc/sddm.conf.d/ /etc/sddm.conf
ls: cannot access '/usr/lib/sddm/sddm.conf.d/': No such file or directory
ls: cannot access '/etc/sddm.conf.d/': No such file or directory
ls: cannot access '/etc/sddm.conf': No such file or directory

Where is sddm.conf ?

Score:1
cn flag

On a fresh Lubuntu 20.04.4 daily install (it's our next release) you will find the file sddm.conf in the /etc/ directory, ie.

/etc/sddm.conf

Note however, you can experience different locations if you didn't fresh install; but installed an older release & release-upgraded to Ubuntu 20.04 LTS, ie. your system may be using older location(s).

SebMa avatar
de flag
I've freshly installed from Ubuntu 20.04.3 ISO., there is no `sddm.conf` anywhere on the FS.
guiverc avatar
cn flag
There doesn't need to be one; `sddm` is used by Lubuntu (LXQt) & Kubuntu (KDE) whom added one with their settings/configs, but they both differ. The box I'm using now (Lubuntu *jammy*) doesn't contain one either.
SebMa avatar
de flag
How do I enable a parameter in the sddm configuration without any `sddm.conf` file ?
guiverc avatar
cn flag
Create the file and you'll have one - it's a text file (*the QA-test install I booted to confirm what I wrote contained just two lines inside the file related to theme*)
SebMa avatar
de flag
Just one more thing : where shall I create my `sddm.conf` file : will it be stored in `/usr/lib/sddm/sddm.conf.d/` directory or in `/etc/sddm.conf.d/` directory or in `/etc/` directory or in `/etc/sddm/conf/` directory ?
guiverc avatar
cn flag
Ubuntu 20.04 LTS Desktop uses `gdm3` by default; I've not *recently* tested it with `sddm` but I'd expect it to work in `/etc/sddm.conf` as that's where it was on the 20.04.4 install performed yesterday I looked at only minutes ago.
SebMa avatar
de flag
Your answer to the question mentions `/etc/sddm/conf`, did you mean `/etc/sddm.conf` ?
guiverc avatar
cn flag
Thank you heaps @SebMa - Yes I did !!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.