04-03-2020, 06:56 AM
(04-02-2020, 12:01 PM)Surehand53 Wrote:(03-30-2020, 06:35 AM)Nappael Wrote: Yeah, resumed this morning and looked through the rest of the repo. Adding 10-usb-kbd.hwdb to /usr/lib/udev/hwdb.d/ and running "systemd-hwdb update" fixed the brightness issue, and the install file showed me how to fix the awake from suspend issue.
Now as far as I can tell, pretty much everything works! I'll need to continue playing around to see if I can find anything else, but happy with this setup for now.
Would you mind to spell out the suspend setup?
I see the script but am not sure about the line for fstab.
Code:post_install() {
# Enable suspend2idle
sed -i s/"#SuspendState=mem standby freeze"/"SuspendState=freeze"/g /etc/systemd/sleep.conf
# Edit fstab
echo "LABEL=BOOT_MNJRO /boot vfat defaults 0 0" >> /etc/fstab
# Enable services
systemctl enable acpid.service
}
post_upgrade() {
# Enable acpid
systemctl enable acpid.service
}
- what is the difference for SuspendState between "mem standby freeze" and "freeze" ?
- How should the line for LABEL= be exactly?
- Can I just execute the commands manually one by one or do they need to be in a script somewhere ?
And just to confirm, is it right that I have to install acpid first: sudo zypper install acpid ?
There is one more thing I noticed in the XFCe version
I have several tools that only report 4 CPUs, e.g. htop
In /sys/bus/cpu/devices/ I see 6 cpus
In /sys/firmware/devicetree/base/cpus seem to be only 4 cpus
In /sys/devices/armv8_cortex_a53/cpus I get the value 0-3. This in it's own is expected, I guess, but there are no values for the two A72 cores that I can see.
So I have the slight suspicion that the system might only run on 4 cpus, or at least the the remaining two are maybe not completely configured.
I don't have much experience to read this /sys folder, so not sure.
I am unfortunately not the best person for this. I'm a long time user but not really a linux sysadmin at all.
However, for the cpu issue, try looking into /boot/extlinux/extlinux.conf and remove the "maxcpus=4" flag. htop is now reporting 6 CPU's for me.
For the suspend issue, I understand what the sed command is doing, but I also wasn't sure of the difference between the "mem standby freeze" and "freeze" SuspendStates. It's something that I was looking at here: https://www.freedesktop.org/software/sys....conf.html. So my understanding is that "mem", "standby" and "freeze" are all separate suspendstates that the kernel supports, and listing them with whitespace makes it try all three in order until one works.
Good news of sorts is that for me, simply doing the sed command was enough to fix the suspend issue.