Skip to main content
Topic: Setting osk-sdl [SOLVED] (Read 546 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Setting osk-sdl [SOLVED]

I installed it from https://aur.archlinux.org/packages/osk-sdl.
It states to follow this instructions https://github.com/ShapeShifter499/osk-sdl_arch.

Quote
cryptdevice=device:dmname

* device is the path to the device backing the encrypted device. Usage of persistent block device naming is strongly recommended.

* dmname is the device-mapper name given to the device after decryption, which will be available as "/dev/mapper/dmname"

* If a LVM contains the encrypted root, the LVM gets activated first and the volume group containing the logical volume of the encrypted root serves as device. It is then followed by the respective volume group to be mapped to root. The parameter follows the form of "cryptdevice=/dev/vgname/lvname:dmname".

If I put "cryptdevice=/dev/mapper/vg1-system" it won't find that since it is inside the luks.

Code: [Select]
NAME                    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda                       8:0    0 238.5G  0 disk
├─sda1                    8:1    0   285M  0 part  /boot/efi
├─sda2                    8:2    0   954M  0 part  /boot
├─sda3                    8:3    0   200G  0 part
│ └─system                 253:3    0   200G  0 crypt
│   ├─vg1-system        253:4    0 191.6G  0 lvm   /
│   └─vg1-swap          253:5    0   8.4G  0 lvm  

How do I change /etc/default/grub then?

Code: [Select]
GRUB_DEFAULT="0"
GRUB_TIMEOUT="3"
GRUB_DISTRIBUTOR="Artix"
GRUB_CMDLINE_LINUX_DEFAULT="quiet cryptdevice=UUID=<uuid of sda3>:system root=/dev/mapper/vg1-system resume=/dev/mapper/vg1-swap"
GRUB_CMDLINE_LINUX="net.ifnames=0"
...
GRUB_ENABLE_CRYPTODISK="y"

And /etc/mkinitcpio.conf:
Code: [Select]
HOOKS=(base udev autodetect modconf encrypt kms keyboard keymap consolefont lvm2 osk-sdl resume block filesystems fsck)

I ran "mkinitcpio -P" and "grub-mkconfig -o /boot/grub/grub.cfg".

 

Re: Setting osk-sdl

Reply #1
With this I get a black screen and I am stuck at boot:
Code: [Select]
HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block lvm2 osk-sdl resume filesystems fsck)
Is that the correct hook order? Do I remove the "encrypt" hook since "osk-sdl" will handle that?
I put it after "lvm2" as the example of the github guide, no "encrypt" hook there too:
Code: [Select]
HOOKS=(base udev autodetect keyboard keymap consolefont modconf block lvm2 osk-sdl filesystems fsck)

From the GUI I can use osk-sdl, with the command of the hook:
Code: [Select]
osk-sdl -G -d ${resolved} -n ${cryptname} -c /etc/osk.conf

Should I try this maybe https://gitlab.com/cherrypicker/unl0kr/?
Quote
... aiming to eventually replace Osk-sdl. It is written in C using LVGL and runs on the Linux framebuffer without hardware acceleration.

Edit:
unl0kr should replace osk-sdl I got it working using the package from github osk-sdl repo:
https://github.com/ShapeShifter499/osk-sdl_arch/issues/3#issuecomment-1437450719
https://github.com/ShapeShifter499/osk-sdl_arch/issues/3#issuecomment-1437454526

I can't find the right modules so I added all the drivers in unl0kr-install:
Code: [Select]
add_all_modules "/drivers/"
Therefore the images take some space, I have only 1 kernel:
Code: [Select]
/dev/sda2               921M  635M  223M  75% /boot

lvm goes after:
Code: [Select]
HOOKS=(base udev autodetect modconf keyboard keymap consolefont unl0kr lvm2 block filesystems resume fsck)