Skip to content

u/Distort3d

In this archive from Aug 2014 to Jan 2017

2
posts
44
comments
0
media
162
score

I have the same model, but i get around 8-10 hours. I just use a WM and some simple compositing.

EDIT: I just remembered, a friend of mine, who has a very similar setup as me, has the FHD model and his battery life is really just slightly better. Not even an hour more if i remember correctly.

3 points
/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */

// DO NOT EDIT THIS FILE, it will be overwritten on update
//
// Default rules for polkit
//
// See the polkit(8) man page for more information
// about configuring polkit.

polkit.addAdminRule(function(action, subject) {
    return ["unix-group:wheel"];
});

I never touched it.

Also, i think you're having this problem because you lack some software that provides the GUI prompt for requesting your password. Which is kinda weird because systemd/polkit( i don't know which) has a CLI prompt as well. Maybe it won't use it because you're using a DE/WM.

1 points

Indeed it does, if just checked what would happen if i were to remove the rule. It now asks for my password, it seems i was wrong :p But it's still useful to have the rule, it won't ask for a pass. It might also fix the problem.

2 points

and it looks like since my user is in the wheel group I don't have to make any adjustments to the polkit rules. Is this a correct assumption?

No, you still have to configure polkit to allow user of the wheel group to the libvirtd system instance.

https://wiki.archlinux.org/index.php/Libvirt#Using_polkit

Just create the .rules file the wiki tells you to and substitute isInGroup("kvm") with isInGroup("wheel").

I know the wiki says that you should have access but it's wrong i think, it might be outdated or something.

3 points

It barely needs any setup, just install qemu,libvirt and virt-manager with pacman and you're done, just run virt-manager. The networking is very limited though(if you use QEMU/KVM user session). For more networking options you should configure polkit to grant you access to the system wide libvirt instance(which you can start with 'sudo systemctl start libvirtd'), the archwiki article about libvirt should explain this.

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