Skip to content

u/ModelDidNotConverge

In this archive from Apr 2020 to Nov 2023

0
posts
22
comments
0
media
152
score
1 saved before deletion

The pausing part is simple, spotify has a dbus MPRIS2 api. Detecting when something else starts to play is harder. Pulseaudio can probably give you a list of programs playing sound, but I do not know of an event system, so that would mean polling pulseaudio commands.

Edit: nevermind, pulseaudio has actually an event system, see pactl subscribe. Even if the information is not the one you need, that may help to wake up to check applications at the right time. Seeing who is playing what would mean checking the sink-inputs I guess.

6 points

My first guess would be a missing driver, does lsmod shows anything that is essential for boot ? Last time I had a non-initramfs boot, I had simply compiled in all the modules that were loaded save for proprietary drivers, but that wasn't with minimal size in mind.

2 points

As far as I know the bbswitch module that goes with bumblebee does that, it powers off your graphic card when you're not running anything on it. Your X server should already use only your intel card, and bumblebee fires up a second one which uses the nvidia card on demand.

I haven't tested but I would therefore not expect to so see any battery life improvement by turning off card in bios, for instance, vs just letting bbswitch power it down. You should see 'disabling discrete graphics' traces in your log if bbswitch is correctly working.

Edit: I'm a bit confused as to why disabling nvidia stuff would lead to a blank screen in your case though, since your primary X should not use it. What does your Xorg log say ?

4 points

They say "limits the amount of data for tethering", so in the end the ISP needs cooperation from your device to know if traffic is thetering or not and keep track, and with a rooted device it's almost certainly possible. Now, what method would work and whether root is strictly necessary would depends on how your ISP tracks it.

If they use actual linux routing capabilities and rely on it to mark packets somehow and don't spy on the tethering interface (for instance, this post deals with an ISP that rely on the TTL of packets and don't run any code on your phone as far as I understand) then routing traffic through an app would be enough. For instance running an ssh server with SOCKS on the phone.

Edit: this old thread has a nice overview of the technics ISPs can use. Many of them can be worked around.

2 points

Safest thing that comes to mind (apart from a vm or container) is creating a dedicated user account, which would have its own home directory and would run its own graphical session. Then no risk of remote user accessing any file you did not put in that dedicated home on purpose, and you can wipe it afterwards. "Drawback" is that you need to reconfigure any software that you would need during the exam, but I would call that a feature since for example browser-saved passwords are technically a part of your browser user configuration and you don't want teamviewer to be able to read that. You would just hand-pick some needed files (i.e. your i3 config) that are not sensitive and copy them over to the new home after double checking their content.

7 points

https://stackoverflow.com/questions/24423724/finding-the-scan-code-of-fn-key

The Fn key does not have a scan code.

The keyboard driver does not expose the Fn key to the operating system, so basically your operating system (and therefore AutoHotkey) does not know that it exists.

When you press the Fn key in combination with a supported key, the keyboard driver reports a single key press to the operating system with a different scan code. Basically, it tells the operating system that a different key was pressed.

So the only way would be to tweak your driver somehow, but I have never heard of that being done, if it is even possible.

2 points

You sort of prove the point though. Debian and Ubuntu are indeed different distros, with different package repositories, wikis and forums, and different user demographics. A solution to a problem on debian may not work on ubuntu ; an ubuntu package may fail to install on debian. When I need more information to setup something on a debian machine, I check first debian-specific resources, and I don't expect to find tons of unrelated advice concerning ubuntu there.

Edit: also, the manjaro fork was 8 years ago while the ubuntu one was 15 years ago. I don't know enough about all four distros to be sure, but it does sound right to say that ubuntu and debian are more different distros than manjaro and arch are. And that could be an idea of the path that manjaro and arch will follow in the future.

6 points

Basic check list:

- is your card on, not soft blocked, and does the driver report loading correctly ?

- are you authenticated/registered succesfully in the access point (including if it's open) ?

- did you register through dhcp and receive a valid ip ?

- are your ip routes set up ?

- is your dns properly configured ?

3 points

The point against "unmanaged" was:

I don't think "untracked" is optimal, because within the context of aconfmgr, these files are tracked within the configuration (either as added files or as ignore rules).

| What about "unmanaged"?

I think it has the same problem as "untracked". (But, so does "managed".)

But it's actually a good distinction to make. Package-owned files are "managed" in the sense that they are built, updated, tested, deployed from an upstream source -- and they are tracked by the package manager. The rest is unmanaged in the sense they were just put there at some point out of nowhere. aconfmgr do not manage them, it has no clue what these files do or are supposed to contain, it simply tracks them. Hence these files are unmanaged files that would be tracked by aconfmgr.

[Un]owned is logical but when I think of the owner of a file, I think first of an user, not of a package, so it would make sense but is not super natural.

2 points

End of this list.

Back to top

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.