Skip to content

u/dosssman

In this archive from Mar 2019 to Mar 2023

2
posts
57
comments
0
media
174
score
1 saved before deletion

Glad it worked.

I was also a bit confused before on how to get the graphics working because my previous install was based on `xf86-video-intel`, but turns out for latest CPU and iGPU the drivers are bundled with the kernels, so there is not really much to do.

Even the Early KMS for the `i915` module and modprod.d config files are not mandatory, but more for rigor's sake. It just works out of the box nowadays.

Hopefully you can now enjoy your FW a bit more.

2 points

That's unfortunate.

One thing is sure, the error you have reference on the Arch Wiki about 5.9.12 kernel has been solving since kernel 6.0 and onward.Do you happen to have stayed on the defective 5.9.12 for a while by any chance ? It is known to cause actual hardware problem.

Also, do you happen to have ` xf86-video-intel` installed ? If so, it might be related to the issue as i915's drivers are integrated into the linux kernel by default, and that package is not recommend for recent Intel CPU / iGPUs. Might want to try removing it and checking again ?

Another thing I wanted to confirm, but are you using Xorg or Wayland ?

If nothing works, I would suggest contacting official framework support.They might have a better understanding of the issue, and if nothing helps, they will probably provide a replacement motherboard, as you are probably still within warranty period.

EDIT: Any chance you could provide the output of neofetch for your computer ? As well as the results of `uname -a`.

Best of luck.

1 points

Just to make sure, but you can drastically improve compilation time by editing your/etc/makepkg.conf by setting something along the lines of MAKEFLAGS="-j$(nproc --all)" to use all the cores of the CPU during compile. Otherwise, it might take around 6 or 7 hours instead of 20 minutes (on i7 1260P).

By kernel command parameters I meant the "GRUB kernel command parameters" that specifies some additional settings when booting up the kernel.

In case you also use grub, you can edit the default configuration in /etc/default/grub, namely by setting the following option, the regenerating the grub.cfg file on the boot partition:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 mitigations=auto mem_sleep_default=deep nvme.noacpi=1 acpi_osi=!'Windows 2020' acpi_backlight=vendor"

The settings above were synthesized from the official Framework forum's community support page for Arch Linux. In case you have some troubles with your FW, you will probably have better chance of finding an answer there.

The gist of the settings I use.

  • mitigations=auto enables some CPU related fixes for security (like patches for Meltdown, Spectrum like vulnerabilities (???))
  • mem_sleep_default=deep helps reducing battery usage during sleep (suspend to RAM)
  • nvme.noacpi=1 helps fixing cases when resuming from SSD fails (or something like that, I don't remember exactly anymore)
  • acpi_osi=!'Windows 2020' acpi_backlight=vendor supposedly help with some ACPI related features such as brightness control, Fan control etc...

Before, I used to also add i915.enable_psr=0 or 1 among those setting to fix some iGPU and rendering related issues, but I have since then moved on using the /etc/modprob.d/i915.conf file mentioned my grand parent comment.

Something I forgot to mention was that you might need to enable Early KMS for the iGPU by adding i915 to your /etc/mkinitcpio.conf file, such as follows:

MODULES=(i915)

then regen the kernel using mkinitcpio -p all or something along those lines.

That's about all the things I did to get a Arch running stably on my FW i7 1260P 16GB.

Sorry for the huge wall of text. Hope it can be of some use. EDIT: Markdown formatting

3 points

Hello there. Also using Arch Linux on 12th gen with X11 and i3wm, and most iGPU related issues were solved by using the linux-clear kernel. Currently the best version for me has been the linux-clear 6.1.1-1 from the AUR (although there are more recent versions, they break backlight control for me).

/etc/modprod.d/i915.conf is as follows:

options i915 enable_psr=1
options i915 enable_fbc=1
options i915 fastboot=1

with Early KMS enabled for the i915 module, namely by adding i915 to your /etc/mkinitcpio.conf file, such as follows:

MODULES=(i915)

then regenerating the kernel with mkinitcpio -p all for example.

Finally the kernel command line parameters I use are as follows:

linux /vmlinuz [...] mitigations=auto mem_sleep_default=deep nvme.noacpi=1 acpi_osi=!'Windows 2020' acpi_backlight=vendor

Might be worth a shot. Best regards.

3 points

How exactly does it break the resume feature for you ?

Using a Framework 12th gen 1260P 16G with Arch / Xorg / i3gaps.
I did have some resume from hibernate (not suspend) since linux 5.19 kernels.
Namely, when resuming from disk, the screen would be black, but I could still interact with the screen locker, the previously opening windows, as well as go into tty.

The fix for me was to migrate to the linux-clear > 6.0.3 from the AUR.

My guess it that support for 12th gen i915 graphics driver in the vanilla linux kernel is not polished enough yet. The linux-clear kernel, on the other hand, is a kernel with better drivers and optimizations for the Intel CPU / iGPUs.

In case you Dell XPS 13 is also 12th gen, might be worth a try.
Hope it helps.

2 points

Do you have libosdGPU.so.3.4.0 or something alike in your /usr/lib/ directory ?It might be due to having a partially up-to-date system.

Also, in case you did not do it already, i would recommended doing a full system update with something along the lines of pacman -Syyu to have the freshest packages, then reboot and see if anything changes.

Going one step deeper, you could try using pacman -F libosdGPU.so to find the package that owns the missing file, then manually checking whether or not it is installed. Not sure about what might be missing for kdenlive though.

1 points

Greetings.

As another user mentioned in the comments, chances are your problems are due to bad support of the graphics, and more generally the recent Alder Lake CPU by the linux kernels on Ubuntu.

I am using a Framework i7 1260P (also Alder lake) with Arch running Xorg and i3wm for the GUI, and most of the i915 graphics related problem were solved by using "linux-clear" kernel in my case.
After some quick looking up, it does not seem like Ubuntu offers a way to install that kernel, so the only solution is probably to compile it manually.

In your post it is mentioned that you are using a relatively old kernel version. You might get better results trying a more recent, non LTS kernel, such as what is described in this blog post for example. From my experience, the linux kernel 6.0 at least has better support for the more recent Alder Lake generations than 5.19 and 5.18 kernels (but my experience is limited to Arch Linux). As a disclaimer, I am not that familiar with Ubuntu, so some extra precautions when trying to change the kernel might be warranted.

Hope it helps.

2 points

Hello there. Had the same problem as you described Arch Linux Xorg i3wm ona Freamework i7 1260P.

Installing linux-clear from AUR since 6.0.3.1 fixed it for me. Will come back later to add more details.

Edit: 12th gen integrated graphics i915 requires modesetting enabled to work, as per the Arch Linux wiki. Adding i915 to the MODULES in mkinitcpio.conf makes it load the graphics driver earlier in boot. For me it only removed one screen "blink" at boot, making the whole process continuous. But otherwise, nothing much changes.

The resume from hibernation problem was likely due to bad support from the kernel's graphics driver for the 12th gen. Linux-clear is a kernel that receives contribution from Intel staff, among other things, so it probably has better support for the i915 and other Intel related features, at least from my experience. When you build the kernel from the AUR package, you can chose the type of CPU to compile for (12th is called Alder Lake), which seems to toggle CPU architecture specific optimization and tweaks.

Hope it helps.

3 points

First, the LUKS keyfile (or passphrase) and the LUKS header are two different things. To my limited understanding, the keyfile is used to unlock a partition, but the header is like a lock, which stores the data necessary to validate the keyfile (or passphrase) before actually unlocking the encrypted parition.

I experienced the situation where I did not have a LUKS header backup, then proceeded to use fdisk to "fix the partition order" of mybdrive, which ended up corrupting the LUKS header. While I did remember the password, the partition could not be unlocked since the header was gone.

Moral of the story: do backup your LUKS header outside of your encrypted partition. Better safe than sorry.

51 points

Now, to go a step further, in case you do manage to get it working with the fix above, I would recommend using the UUID based method for indicating the partition, instead of /dev/sdX. The latter is the old way of doing it, and in my personal experience, can lead to some instability. For example, if there is another USB thumb key or HDD plugged in at boot, it might be set as /dev/sda instead of the internal storage drive, making the boot loader unable to find the system that it should boot from.

The equivalent of the GRUB configuration above using UUID would follow the following:

GRUB_DEFAULT=0

GRUB_TIMEOUT=5

GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"

GRUB_CMDLINE_LINUX="cryptdevice=UUID=f0f57901-ddw3d-4cfe-915b-dfds31673cc6a:cryptroot resume=UUID=94sdf4d1-e8c3-4ff9-8b20-0b77bsdfs75 resume_offset=13446536"

EDIT: Also, 20GB of Swap for 8G of RAM might be overkill, unless you have a very particular use case. The swap being on the HDD, which is dramatically slower than the RAM, you might get degraded performance if the system relies too much on the swap.

Hope it helps.

2 points

Greetings.

I suspect your resume from hibernation is not working because (1) the resume parameters indicates the encrypted partition /dev/sda2 instead of the unlocked root partition /dev/mapper/cryptroot, as per the relevant Arch wiki and (2) your resume hook in your /etc/mkinitcpio.conf is before the encrypt hook.

Because the hooks are loaded in the order they are specified, your system cannot find the resume=/dev/mapper/cryptroot because the encrypt was not called to unlock the encrypted partition and mount it as /dev/mapper/cryptroot in the first place.

Rigorously speaking, the following configuration fix should get it working:

(1) In /etc/default/grub:

GRUB_DEFAULT=0

GRUB_TIMEOUT=5

GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"

GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:cryptroot resume=/dev/mapper/cryptroot resume_offset=13446536"

(2) In /etc/mkinitcpio.conf (what I currently use and confirmed to work):

...

HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt filesystems resume fsck)

...

then re-run both mkinitcpio -p linux then regenreate the grub configuration file with grub-mkconfig as you did before, reboot, and test the hibernation again.

2 points

Greetings.

Having a similar problem with Framework laptop, 12th i7 1260P, using Xorg + i3wm (i3-gaps) and without any login manager.
In my case, suspend works as expected, but when resuming from hibernation, it manifest the black screen problem as you described. The monitor back light itself is on, but the whole screen is blank. I can see and move the mouse cursor, and interact with the terminal windoes that were opened before running `systemctl hibernate`.

I tried multiple kernels such as linux-lts, vanilla linux, linxu-clear, linux-mainline at either version 5.19.13 or the more recent 6.0.1 (where applicable) but they all have the same behavior.
There were two cases when the problem seemed to be fixed, but always with caveats.

The first time was when using the `linux-clear-bin` kernel from the AUR. While hibernation does work, it seems to be because the graphics driver on that kernel version is broken. Namely, applications that rely on 3D rendering such as Blender performs very slowly.

The second time was with `linux-drm-tip-git` from the AUR, which is supposed to contain bleeding edge GPU drivers. Hibernation and suspend work as desired, but then the back light control is not working. Namely, I cannot change the brightness of the screen, and it appears to be fixed at 100% all the time.

Following your suggestion, I will be trying the linux-zen kernel, to ta least see if it helps on my side too.

1 points

Hey there. It has been a while since I have done the rEFIind configuration, and it was at most with one Windows and one Linux system. Maybe it has changed now, but at that time (2014) I think rEFInd was based on manual configuration anyway, so you might have to add the boot entries for each of your Linux systems manually into the rEFInd config.

As guide, I used this page of the manual: https://www.rodsbooks.com/refind/configfile.html
The Arch Linux Wiki's rEFInd page is also a good reference https://wiki.archlinux.org/title/REFInd#Manual_installation
Beside that, the key ingredient was patience.

A snipet of my current rEFInd configuration that dual boots windows and arch linux is as follows:

  • the EFI partition is mounted as /boot
  • the various OS booting images are thus located in /boot/EFI.
  • Arch linux's vmlinuz-linux and initramfs-linux.img that are required to boot the os are located in /boot/EFI/4RCH
  • the refind configuration is stored in the boot/EFI/refind folder. Namely, the configuration file is stored as /boot/EFI/refind/refind.conf. I assume rEFInd is already working on your side, in the sense that when you start the computer, the rEFInd OS selection menu is what comes up. Therefore I only focus on the refind.conf file.
  • The refind.conf file is based on the /usr/shared/refind/refind.conf template.
  • In said refind.conf file, the boot entry for the Arch linux system is configured with the following lines (templates are at the bottom of the default file I think). The configuration is as follows:

​

menuentry 4RCH {
        icon /EFI/refind/icons/os_arch.png
        volume <YOUR XXX LINUX OS VOLUME UUID>
        ostype Linux
        loader /EFI/4RCH/vmlinuz-linux
        initrd /EFI/4RCH/initramfs-linux.img
        options "root=PARTUUID=<YOUR XXX LINUX OS PARTUUID> resume=PARTUUID=<SWAP PARTITION's PARTUUID FOR HIBERNATION SUPPORT> rw add_efi_memmap"
        submenuentry "Boot 4RCH using fallback initramfs" {
                initrd /EFI/4RCH/initramfs-linux-fallback.img
        }
}

For the other linux distribution, I think you should be able to use the same menu entry but changing the proper VOLUME UUID, PARTUUID, as well as the path for `loader` and the `initrd` images.

Another thing that might be worth mentioning is that the `vmlinuz` and `initramfs-linux.img` as expected to be on the `EFI` partition. It might be possible to have them stored somewhere else since the EFI partition space might be limited, but I did not go that far during my experiments.
Hope it can be of some use.

1 points

Hey there. Just wanted to thank you for the detailed instructions.

This week, for some unknown reason, the USB dongle for the logitech mouse did not seem to induce any hibernation, even before I implemented the udev rules you have provided. So I don't really know if it worked or not haha.

Maybe it is because I changed the USB port where I plug the mouse dongle ??? Unfortunately, I did not have much time to further investigate, especially since the mouse was working anyway.

One thing I was wondering was if in my case, in ATTR{power/wakeup}="disabled", instead of wakeup I should put suspend or something equivalent, but when browsing the /proc/acpi/ directory, I could not find anything related to suspend, just wakeup. Hopefully it handles the suspend events too.

In any case, thanks a lot for the help.

1 points

Hello there. ALso a i3wm here.
I am having the exact same problem on my Arch running desktop. Instead of Thunar, it is some other weird file dialog that comes up.
However, on the Arch running laptop, the file dialog works as expected with Thunar. Maybe a matter of setting after all ?

Also, with recent Brave updates, I noticed that thec cursor size increases when hovering on browser windows, but not on other windows like the terminal for example (alacritty).

2 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.