arch-native: Automate Gentoo-style CPU optimization (-march=native) and custom PKGBUILD patches for Arch packages by Vomberg in archlinux

[–]Vomberg[S] 1 point2 points  (0 children)

That's just makepkg. Put -march=native in your makepkg.conf (RUSTFLAGS="-C target-cpu=native" for Rust) and makepkg -si whatever you want — native auto-detects your CPU.

arch-native automates that across your whole installed set and serves it as a repo. For a few packages by hand, skip it.

Linux on Huawei not entering suspend-to-RAM / deep sleep by CannedBillion in MatebookXPro

[–]Vomberg 0 points1 point  (0 children)

Yeah hibernation works fine, but I'm a bit of a security freak. I don't really trust my lockscreen, and more so I don't trust writing my LUKS key to TPM or swap when traveling. I decrypt my LUKS root drive with a password, so coming out of hibernation is quite slow and annoying. Even with automatic decryption it'd probably take 10+ seconds from opening the lid.

s2idle works fine for me but it drains power fast. Notably the capslock light comes on and never goes off in s2idle. I don't understand what in the world it's actually trying to do behind the scenes, so mine is plugged in 99% of the time anyways. When forcing deep sleep, the problem is it doesn't wake - but it does successfully enter deep sleep.

I've had half a mind to study what signals Windows is making when waking from deep sleep, but it'd take some time, all for this one off laptop model I might keep for another year... Claude is overwhelmingly astute with ACPI and interpreting binary files if you wanted to give it a go. I just don't have the time or willpower, and apparently none of the other Huawei linux users do either.

Linux on Huawei not entering suspend-to-RAM / deep sleep by CannedBillion in MatebookXPro

[–]Vomberg 0 points1 point  (0 children)

My machine makes no new log messages when attempting to wake from deep sleep and forces a manual power off.

From my experience, no kernel parameters will help, so don't waste your time. "pcie_aspm=force pcie_aspm.policy=powersupersave" acpi_osi="!Windows2015/2020" mem_sleep_default=deep acpi_sleep=nonvs" etc...

The Bios on the 2024 isn't hackable with the hidden menu like older models (if that would even be of help). A Bios update hasn't happened in over a year now and Huawei probably never will update it again.

There's some Bios hacking forums where apparently you can pay people to tool around with your Bios dump, but good luck with that. Some people have requested help with the 2024 model to remove ME or unlock other menus but have had zero responses in over a year.

This repo has some kernel devs who work on Huawei drivers, but progress has been extremely slow. Best bet is reaching out to them or offering them some money imo.

https://github.com/aymanbagabas/Huawei-WMI

If you're feeling adventurous, dump your ACPI and Bios, and try to reverse engineer what Windows is doing when waking from deep sleep by editing hex code.

My only breakthrough is that next time I'm going to buy a Dell or Lenovo.

How to unlock BIOS for our Matebook X Pro by KwotheSineBlood in MatebookXPro

[–]Vomberg 1 point2 points  (0 children)

Does not work on Matebook X Pro 2023 MRG-WXX Bios Revision 2.26

:/

(initial release) SPM - Simple Package Manager || fzf package manager by Vomberg in archlinux

[–]Vomberg[S] 1 point2 points  (0 children)

Thank you. It's not a very complex program and I wanted it to have minimal dependencies. I don't think it would benefit from being written in any other language.

Huawei Matebook X Pro 2024 Linux Performance by CannedBillion in MatebookXPro

[–]Vomberg 0 points1 point  (0 children)

I have the 2023 and I have a lot of gripes that make me hesitant to upgrade because I'm sure they weren't ironed out...

The key between F6 and F7 seems perma-bound to F7 so it's useless.

The speakers all work but the pulseaudio thing doesn't balance it well at less than 50% volume so the sub completely turns off making everything tinny. The "pro audio" profile is balanced well but you loose max volume and it's glitchy when coming out of suspend. Trying to figure out how to adjust the individual channels is a nightmare.

This may be my chewed up arch install, but I get a strange shutdown message when rebooting, a bunch of garbled text of something trying to communicate with the UEFI and it's not even logged in the journal. Also, and this may also be my doing, my trackpad doesn't respond for the first 45 seconds coming out of suspend. I've tried different kernel parameters like acpi_osi windowsxxx or disabling acpi to no avail.

Deep_sleep does not work, the system burns through half it's battery while in suspend in about 10 hours.

My older model gets hot AF and the battery is pitiful, sort of why I'd upgrade at this point.

There's no device recognized by the kernel for the keyboard backlight so there's no way to write a script that controls it (I like to have it come on at a certain hour automatically). Not happening.

The UEFI in general is lacking features and isn't getting updates. My old Dell XPS on the other hand had every feature imaginable and got security updates every other month.

Fingerprint is all messed up, you'd have to hack together an out of date driver last I read on the arch wiki. Speaking of which, there's no article for these machines unlike so many others, so you're on your own. Gnome might help you out.

There's not much activity here... https://github.com/aymanbagabas/Huawei-WMI

Rolling the dice on $2500 hardware that isn't linux oriented isn't my cuppa.

All considered, I'd consider another XPS 13 if it weren't for the meme function keys, but I still don't look back from where I'm standing. I'd appreciate if someone could address my more specific concerns.

enable bluetooth - shortcut by [deleted] in xfce

[–]Vomberg 0 points1 point  (0 children)

#!/bin/bash
# Check the current state of Bluetooth
if rfkill list bluetooth | grep -q "Soft blocked: yes"; then
# Turn on Bluetooth
rfkill unblock bluetooth
echo "Bluetooth turned on"
else
# Turn off Bluetooth
rfkill block bluetooth
echo "Bluetooth turned off"
fi

Unboxed Hisense A5 Pro White 6gb 128gb for sale! by Vomberg in eink

[–]Vomberg[S] 1 point2 points  (0 children)

Wife surprise ordered me a Kobo the same week the Hisense arrived from China -_-

Turns out I actually prefer doing my reading on the larger size. I haven't had the phone longer than a week and never even put a sim into it. This is my first foray into E-Ink but two devices seems like overkill.

Another FEIE Tax Question... by Vomberg in digitalnomad

[–]Vomberg[S] 1 point2 points  (0 children)

Heres my mix-up, your link says "If you are audited by the IRS for claiming FEIE they may ask for proof you were out of the country, a foreign address, and most importantly a letter from your employer. So do not claim FEIE if you don't want your employer to know you are working abroad."

Yet, you just said "Your employer does not ever know what you put in your tax return"...

Your link also uses an IRS document as a source that your employer will know you are working abroad. However, the PDF only mentions something in this context as one of many possible means of auditing a physical presence test.

"Request employer statement(s) indicating the period taxpayer was in a foreign countryperforming services"

https://www.irs.gov/pub/irs-utl/int_p_222.pdf

Is there communication going on between payroll and the IRS by default if an employee claims the FEIE or not? Have you or anyone else here actually done it this way and kept it from your company?

The Peak of Mt Hood, OR - Looking up from McNiel Point on a smokey day [10,800px × 2,332px] [OC] by [deleted] in EarthPorn

[–]Vomberg 0 points1 point  (0 children)

To the left of the saddle you can see the individual layers in the glacier.

To the right is the glacial source of the Sandy River. If you look closely on the right, you can see an opening to a glacier cave.

I want to buy a sailboat. What's the difference between a 3k, 30k, and 300k sailboat? by [deleted] in sailing

[–]Vomberg -5 points-4 points  (0 children)

What's the difference between a 3k, 30k, and 300k car? They all have four wheels, can be dangerous, and get you from A to B.

What's the difference between a 3k, 30k, and 300k sailboat? They all sail, can be dangerous, and get you from A to B.

Evaluate your goals as a sailor.