Skip to content

u/LorenWard

In this archive from Dec 2018 to Dec 2022

46
posts
40
comments
0
media
143
score
1 saved before deletion

I solved the issue. The root cause was the autodetect hook was running before the keyboard hook, and apparently when the image was made with mkinitcpio there must have been an external keyboard plugged in. Despite it not being present, it was loading that keyboard to use before it got to the keyboard hook, thus not detecting and using the built-in keyboard.
The fix was to edit /etc/mkinitcpio.conf and put keyboard in front of autodetect in the HOOKS=() section, then run # mkinitcpio -p linux
I feel like this should be the default, or perhaps there's a reason it wouldn't be?

2 points

I solved the issue. The root cause was the autodetect hook was running before the keyboard hook, and apparently when the image was made with mkinitcpio there must have been an external keyboard plugged in. Despite it not being present, it was loading that keyboard to use before it got to the keyboard hook, thus not detecting and using the built-in keyboard.
The fix was to edit /etc/mkinitcpio.conf and put keyboard in front of autodetect in the HOOKS=() section, then run # mkinitcpio -p linux
I feel like this should be the default, or perhaps there's a reason it wouldn't be?

1 points

I solved the issue. The root cause was the autodetect hook was running before the keyboard hook, and apparently when the image was made with mkinitcpio there must have been an external keyboard plugged in. Despite it not being present, it was loading that keyboard to use before it got to the keyboard hook, thus not detecting and using the built-in keyboard.
The fix was to edit /etc/mkinitcpio.conf and put keyboard in front of autodetect in the HOOKS=() section, then run # mkinitcpio -p linux
I feel like this should be the default, or perhaps there's a reason it wouldn't be?

2 points

Thank you; the main problem with this for today is I didn't send a boot usb with her, and I don't think she'll be able to make one there. I am using ext4, so I have a feeling the issue is related either to keyboard hardware or a driver somewhere, but I will definitely give this a try if it isn't working by the time she gets back.

2 points

I had a lot of fun building an ISO today, one question I have is is there an easy way to pacstrap or otherwise install all of the programs from the iso itself? Would save some download time and I already made a list of the programs I'd want on the base system.

​

EDIT: Found the answer # pacman -S --needed - < pkglist.txt

1 points

Yeah, I initially had that (straight from the wiki) but then I realized it was dumb and changed it to

smtps://myemailaddress@smtp.gmail.com

but that still isn't working

​

EDIT: I figured it out. If you send a message via command line and just save a blank email (vim being the editor), it apparently cancels sending the message. Once I typed out something for the body it worked.

Also you can echo "" | mutt -s "subject" recipient@blah.com

3 points

Thank you... if I'm reading that correctly then all I should need to do is add:

set smtp_pass = $imap_pass
set smtp_url = smtps://$imap_user@smtp.domain.tld 
set ssl_starttls = yes

right?

​

I've tried that and it is still not working. I also tried set smtp_url = smtps://myemailaddress@smtp.gmail.com but still no dice.

1 points

Okay, thank you. I have done that and the services are starting successfully, however they don't seem to actually do anything. Do I have my syntax right on trying to call a bash program and everything?

​

EDIT: I ran systemctl --type=service and my suspend.service is loaded but failed in active and sub

​

This is what is in suspend.service

[Unit]
Description=User suspend actions
Before=sleep.target

[Service]
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/bin/nordvpn d

[Install]
WantedBy=sleep.target

I've also tried it with suspend.target instead. I've removed the Environment line and changed it to Type=simple to match other things I've found but in every case it still fails in active and sub

1 points

I'm trying to get it to work with what you linked but I don't think I'm understanding completely. I created two files:

​

/etc/systemd/system/suspend@.service

[Unit]
Description=User suspend actions 
Before=sleep.target

[Service] 
User=%I 
Type=forking 
Environment=DISPLAY=:0 
ExecStart=/usr/bin/nordvpn d

[Install] 
WantedBy=sleep.target

​

/etc/systemd/system/resume@.service
[Unit]
Description=User resume actions 
After=suspend.target

[Service] 
User=%I 
Type=simple 
ExecStart=/usr/bin/nordvpn c

[Install] 
WantedBy=suspend.target

​

Then, following this I restarted the daemon and tried to start the services. I got an error so I looked further and saw this in the wiki:

"Then enable and instance of this template by specifying the basename of an existing systemd service after the @ i.e. sleep@service-file-basename.service"

​

But I don't really know what basename service I should be @'ing. I tried sudo systemctl start suspend@sleep.service but got the following error:

Job for suspend@sleep.service failed because the control process exited with an error code.

​

So I'm not really sure where to go from here.

1 points

Thank you, if I'm following correctly, I'll make the suspend@.service and resume@.service files, copy those templates (inserting my nordvpn c and nordvpn d in place of the ExecStartPre commands, right?), then enable and start the services with systemctl?

​

Do I need to have the ExecStart and ExecStartPost in there? Or does using this bypass the existing suspend routine?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.