Skip to content

u/rastermon

In this archive from Apr 2012 to Aug 2023

0
posts
136
comments
0
media
382
score

aaaaah. So it's not just a resolution question... you're also talking other factors too. if it were pure res - 1080p is good enough for regular view distances for a 13-14" laptop and of course saves you the power which gets you battery life - so all positive, but with a better color gammut... really... try to look at the screens side by side in real life if you can. have them show the same images. decide then. but as i said - if it were oled vs lcd... oled would win any day at any resolution given my experiences :)

1 points

For better driver support, out of the box kernel driver that works and keeps working when you update kernels. I moved from nvidia to amd and don't regret it one bit. i've enjoyed it fully and my life is better. Performance is not an issue either (moved first to vega64 now 6800xt - was on gtx970 before that and a string if nvidias going back a fair few years). Yes - play games (steam proton) and no performance issues but the real improvements were the lack of friction.

7 points

Yes. It's my daily driver on desktops, laptops, rpi boards now for like 8 years or so now (this machine i'm on now - my desktop has had the same arch install for over 8 years. it has been updated over time, moved from one physical disk to another by just dd'ing the image over, expanding partitions, resizing the fs etc. and changing cpu, motherboard and everything too - it's lasted much longer than my hardware has...).

1 points

How long is a piece of string? Not a lot of details here. What hardware? Do you only have the intel GPU that is part of the CPU? And AMD APU with CPU and GPU together too on the same chip? A separate discrete GPU do you have both integrated GPU and discrete? Integrated GPUs are less performant than discrete but also tend to use less power. Often a lot less. A system with both discrete and integrated is a lot more complex to make it work. I'd generally avoid such hardware, but there are ways of making it work. Unless you have special requirements like higher-end games, complex professional modelling etc. the integrated GPU is probably just fine for all your daily needs (for web browser, other 2D GUI needs like compositing etc.). It'll be good enough and keep your battery life at the best. Using a GPU depends on many complexities of the drawn/rendering stack you use too - thus "how long is a piece of string". Almost always if your desktop environment is composited, it will use a GPU to do the compositing (via OpenGL). Yes - XRender may be used instead but this can often use the GPU behind the scenes to do the work. GPUs are used by most major browsers (OpenGL) to render too these days. I can go into many more areas/details but without more parameters to narrow things down ... it's probably not a good use of time.

0 points

have you looked around in /sys/class/hwmon/ ? one of those links points to your gpu i bet. well the hw monitors for it. this is where you can find out voltage, current, fan speeds and so on and also control them. I wrote a tool to dump hwmon nodes and their info. binary here:

http://www.rasterman.com/files/hwmn

source here:

http://www.rasterman.com/files/hwmn.c

requires efl (pacman -S efl) to run. run it and it should dump out hardware monitors. it'll sit in a loop dumping to stdout every second until you kill -9 the process. you should see some entry like:

amdgpu
                  edge: 52.0c [             unknown] on cri=100.0c emr=105.0c
              junction: 55.0c [             unknown] on cri=110.0c emr=115.0c
                   mem: 60.0c [             unknown] on cri=100.0c emr=105.0c
                  fan1:     0rpm off max=3300rpm
                  pwm1:   0% auto max=100%
                  sclk:    0mhz
                  mclk: 1000mhz
                power1: 33.0w on cap=281.0w capmax=281.0w
                vddgfx: 0.01v on

this will be in order of hwmon sensors in the hwmon sysfs dir - so e.g. for me it's hwmon4. in there you'll find nodes for all the things - some of which will be fan*. they report the fan speed but also you can write to them to control the fan. eg echo 0 > fan1_enable or echo 0 > fan1_target and so on. documentation for the hwmon sysfs interface is here:

https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface

3 points

I tell everyone... don't get a laptop with nvidia + intel (optimus). It's trouble. I just got a new lenovo P1 for work - have just been working on fixing it up to work right (it runs Ubuntu, not arch - but that's how our IT ships the laptop so it's staying that way - yes company IT will ship laptops with Linux if that is your preference). It has issues with vsync, tearing, eventually to just make it work i disabled the nvidia and am using just the intel GPU. I didn't choose the hardware. It was the only choice. You have a choice. Choose wisely. Choose to NOT have optimus. It's trouble.

2 points

for dedicated amd gpu - nothing special. just install the amgdpu related packages (xf86-video-amdgpu - assuming X11). It will "just work".

for nvidia there are the nvidia blob related pkgs, just beware that kernel upgrades may and often enough will break the nvidia kernel blob and sometimes the nvidia driver doesn't catch up for a while so you have to avoid a kernel upgrade until this is fixed, or downgrade again or live with a graphicsless system.

amd is the path of high-performance gpu with no hassles. (i am speaking to you from an amd zen3 5950x system with an amd 6800xt gpu with arch that has been going well for a few months now - desktop works. games work. painless).

2 points

Root is another user. Your config files belong to your user. They are in your user's files. Depending on toolkit and policy a toolkit will check config files belonging to the user who is running the app.

In this case either it looks int $HOME/.xxx and EXPLICITLY looks in the dir the $HOME environment variable says to use ... and $HOME now says /root rather than /home/youruser ... thus it looks at different config files, OR $HOME still says /home/youruser but the toolkit doesn't bother with $HOME and literally looks up the user's home directory in the password entry (geytpwent() function call). Chances are $HOME is /root as this is normally what I see happen with sudo. Thus as long as it runs as root it will always look at root's config files, not yours by policy (which, for security reasons, is the best thing to do and things like sudo will change $HOME for these reasons). GTK will probably only fall back to /etc config if root has NOT config for GTK... it probably has some. You may have logged in as root once in X11 and thus have set up config for root as a bi-product.

Sometimes apps can look at properties stored on the display (in X11 - like xsettings) for configuration and settings but often only to a limit and if these require using a theme that is only stored in the homedir of your user... a root process won't handle it well as it can't find that theme as it is running as root. i'm not sure what GTK is doing here.

If I were you, I'd generally expect running things as root to then fail to look right because of the above. The general advice has always been - don't run applications as root (or another user). If some application needs elevated privileges, it should split this out between a front-end running as your user and a back-end running as root (via some mechanism - sudo, polkit, or simply setuid root backend tool - but this is something for the developer of that app to do). You could mirror all relevant GTK config and so on data from your user to root's home dir, but you will need to re-do this every time you change config. You could symlink... but then that has its own issues too.

3 points

What you said. 100%.

Yes - in theory a hand-tuned compiled system with -march=native etc. will maybe be a tiny bit faster. On average maybe 2-5% ... maybe. I would doubt it would be easy to measure. You would get more mileage from just being choosy on what you run - run as few services as possible to maximize RAM used for disk cache. This probably buys you on average more performance than any rebuild of the system.

And then as many have mentioned... never update? Bad idea. Especially if it has to talk to anything on the internet. You'll soon enough have dozens of unpatched browser exploits. The exploit hole will only grow over time. It's just not worth it. If you have an incredibly powerful machine that can eat though the build of all your packages in a few days... but then it's powerful enough to not much care about minor optimizations.

You build things if you work on them as a dev. You build things when You need a new feature from git master that isn't in a package release. You build things if you are debugging and need to enable debug flags and related things. This is when it's worth it, and it's targeted at those specific bits of software.

3 points

That's totally normal. you can't have 2. it doesn't make any sense as the job of a compositor is to take all pixmap input from the window on screen and merge/composite them together and present it to the screen. if you had 2 they'd fight over the presentation and it'd just not work. you could nest them - but that's a very different scenario. compositors, if done right, will mutually-exclusively lock each-other out. if they don't, they are broken.

1 points

cd /sys/class/power_supply

ls

there should probably be 2 directories. 1 is your ac power supply (probably called AC or AC0 or something) and the other your battery (maybe BAT or BAT0 or possibly something more exotic). so it's pretend it's called BAT:

cd BAT

cat uevent

now basically inspect the files. it depends what the battery exposes but some may be voltage. current, energy etc. and they will have variants like energy_full_design, energy_full, energy_now ... etc. (they mean what they imply by name - the full level may be less than the design full for example if the battery has been used for a long time because it just cant fill up as much as if it was new). this is what the kernel reports from the battery itself. see what it says. either the battery meter is mis-reading this and reading the wrong values or miscalculating ... or it's actually possible you just got a dud battery and you can keep cat'ing these files to watch them change (or cat uevent for a summary of them in a single file)

1 points

you can undo all your changes and walk them back one by one... :) but by the smell of things something is blocking and waiting on something and it's doing so really badly... knowing what that thing is is a breadcrumb to follow... the problem is your driver blobs (i am guessing as i didn't see the full output, but by your description) are doing the busy-waiting.. what for... no idea, and no way to find out. :( well not via perf and backtraces and some kind of function/symbol names that could maybe give a hint... :|

1 points

hmmm... knowing what syscall it is would be helpful... you'd need some debug info for xorg or something to get some sensible function names. i was wondering if it was perhaps inside a lock. spinlock or something or maybe it was an ioctl and if so then what device/fd was the ioctl on? and so on - this might begin to narrow down what it is...

my normal yet not so useful to you answer normally is "nvidia - binary blobs with no source or ability to debug... talk to nvidia, or change gfx card to some that is more friendly to oss". i switched from nvidia a few years back to amd after avoiding them for many years. it has made my life easier. it'd be nice if nvidia had oss drivers, (nouveau is kind-of that but they are nowhere near as usable as anything for intel and amd). i know telling your to "go change gfx card" is probably not what you want to hear, but just hear me out:

since my first day on linux back in like 1996, i have always custom specced my pc's to be oss friendly. i carefully chose the hw to be things i knew were supported. nvidia does support linux, but since i've been moving towards wayland in my code, nvidia have dropped off that list as their don't support it (sorry - eglstreams is not what i call support. it's another nvidia-only api that all compositors have to adapt to just to support nvidia when they were told long before they came up with eglstreams that gbm was the way to go, thus i consider nvidia "support" to have lapsed as a result). but as i have carefully chosen my hardware i have tended to have few if any problems with linux compared to things i read (like here) that others get. i am just letting you know that your linux life will be better if you carefully choose your hardware. :)

now as for perf - i guess without debug symbols you're not going to find out... that leads me to believe that the syscall is somewhere in one of the nvidia blobs that have been stripped of all debug/symbol info, at which point your only recourse is "talk to nvidia or stop using nvidia" that i see. your move now. :)

2 points

I have precisely the same 3960 xps13 as you and got it in Feb 2018 (i7, 512gb nvme, 1920x1080 non-touch panel). It has never even booted into windows. The first thing it had done to it was arch linux installed and I've used it ever since. My battery reports till 96.3643% capacity after all this time. I happily allow my laptop to be plugged into AC whenever I am near an AC outlet and only actually use battery when actually mobile (planes, trains, park benches, meeting rooms so when moving around the office etc).

So as such Linux/arch handle the exact same hardware fine. I am guessing it's how you use it. Eiither your habits are vastly different to mine and/or you use different software on top of arch (different desktop environment and apps in it?). My apps are mostly terminals (terminology - turned blinking cursor off to save battery), text editor (jed in terminal) and compiling, chromum, hexchat (irc), sylpheed (email). My desktop is enlightenment. I use connman to manage my wifi/network, bluez for BT, not network-manager. I do actively use the bluetooth on this - sometimes for tethering but mostly for an external mouse when travelling. I do have the screen brightness at 100% until it dims to 30% after 60 sec on ac, 20 sec when on battery. screen blanking set to black after 5 mins. i ensured cpufreq pstate minimum is set to 10 and max is 100 of course.

So I'm going really well on the same hardware as you... perhaps it's in the details as above...

1 points

That'd be burst/turbo speed it's reporting. so "up to that". If you want to see the CPU frequency of all your cpu cores, then type this in a terminal:

cat /sys/devices/system/cpu/cpu?/cpufreq/scaling_cur_freq

You'll get the frequency in Khz at exactly that point in time. - re-run the command (up-arrow, Enter in a terminal) to get it again. repeat as you like.

If your system is hot with the fan going a lot, you need to look into something USING the CPU to cause it to scale up, or look at your CPU governor control. I don't know what Window Manager or Desktop Envbironment you are using, but mine (Enlightenment) out of the box comes with a cpufreq gadget which shows the frequency of your cores (min freq, max freq and average), and click on it for controls for the governor to use, the power state min/max. it could be your power state min is 100 which would not help - drop it to the lowest amount you can.

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