Re: Testers for LCD Panel Self Refresh on laptops with Intel graphics
wanted
by Hans de Goede
Hi Andrew,
On 05-02-18 23:02, Andrew Lutomirski wrote:
> On Thu, Feb 1, 2018 at 11:34 AM, Hans de Goede <hdegoede(a)redhat.com> wrote:
>>
>> Hi All,
>>
>> For the "Improved Laptop Battery Life" feature:
>> https://fedoraproject.org/wiki/Changes/ImprovedLaptopBatteryLife
>>
>> I'm working on for Fedora 28 I would like to also try and enable
>> Panel Self Refresh on laptops with Intel graphics, some quick tests
>> have shown this to save another 0.5W (when idle / nothing on the
>> screen changes). This is currently off be default because it is
>> known to cause issues on some devices. So I think we will probably
>> need a white- or black-list. But first we need more data on this.
>>
>> If you can spare 10 minutes, please see my blogpost for how to test
>> this and send me a mail with the info request in the blogpost:
>> https://hansdegoede.livejournal.com/18653.html
>>
>
> I suspect that the results may be odd. After falling into a rabbit
> hole when I tried to do this test, I learned a few things about the
> i915 driver's PSR support:
>
> - Intel doesn't currently have any working CI coverage for PSR.
>
> - There's an Intel person who seems to be actively trying to fix PSR.
>
> - PSR on 4.15 on newish hardware (at least Skylake) is completely broken.
>
> - There are other known bugs.
>
> So I'm not sure that trying to tabulate PSR functionality based on
> panel type seems like it may be the wrong approach.
Thank you for your poking around wrt this. Can you send me an (off-list)
email with the contact info for the Intel person you are talking about,
before spending more time on this I would like to touch base with him/her.
Regards,
Hans
6 years, 2 months
Permission Problems on NAS
by Robert McBroom
For years I've kept a local repo on NAS so that I can update several
systems without having to download everything for each one. The drives
on the NAS are formatted as ntfs for communication with Win systems.
Now I'm getting all kinds of file attributes problems with rsync
transferring the files from the dnf updates directory to the packages
file on the NAS. "find . -print|cpio ---" still works and appropriately
transfers the new files with their attributes although with complaints
about transfer of the permissions on the files. However, createrepo
gets into trouble and gives errors of the form
C_CREATEREPOLIB: Warning: Cannot copy
Packages/repodata/1f3b3f3f1e6f83cd3ce15c483203d0233352bef2c1fb9bdc84cf264c24637984-other.sqlite.bz2
->
Packages/.repodata/1f3b3f3f1e6f83cd3ce15c483203d0233352bef2c1fb9bdc84cf264c24637984-other.sqlite.bz2:
cp: preserving permissions for
?Packages/.repodata/1f3b3f3f1e6f83cd3ce15c483203d0233352bef2c1fb9bdc84cf264c24637984-other.sqlite.bz2?:
Permission denied : Child process exited with code 1
C_CREATEREPOLIB: Warning: Cannot copy
Packages/repodata/3ab748ea9b0272e92fe69078cf2dfc11a728656f1b6a4ca0a61a861e17c89b64-filelists.xml.gz
->
Packages/.repodata/3ab748ea9b0272e92fe69078cf2dfc11a728656f1b6a4ca0a61a861e17c89b64-filelists.xml.gz:
cp: preserving permissions for
?Packages/.repodata/3ab748ea9b0272e92fe69078cf2dfc11a728656f1b6a4ca0a61a861e17c89b64-filelists.xml.gz?:
Permission denied : Child process exited with code 1
C_CREATEREPOLIB: Warning: Cannot copy
Packages/repodata/4da1215cadf7eca76485c8e9ddf17ba687f6ade39b36a75eea40315f344e4663-filelists.sqlite.bz2
->
Packages/.repodata/4da1215cadf7eca76485c8e9ddf17ba687f6ade39b36a75eea40315f344e4663-filelists.sqlite.bz2:
cp: preserving permissions for
?Packages/.repodata/4da1215cadf7eca76485c8e9ddf17ba687f6ade39b36a75eea40315f344e4663-filelists.sqlite.bz2?:
Permission denied : Child process exited with code 1
Makes no difference whether the repodata and .repodata directories
pre-exist or not. The NAS local repo is not usable. The files can be
migrated to a local system drive and a working repo created. Totally
defeating the idea of having a single set of files usable from multiple
systems.
6 years, 2 months
gedit/editor with autosave
by Alex
Hi,
I used gedit frequently for note taking on a fedora27 system. The
latest kernels have been quite unstable for me here (plug in a USB
stick and the whole thing crashes, for example), taking down all my
unsaved notes with it.
Is there a simple, lightweight graphical editor that I can replace
gedit with and has more features to autosave and prevent losing data?
I don't need (want) the features of libreoffice or another more
advanced editor. Maybe even a graphical front-end to vim that's as
quick and lightweight?
6 years, 2 months
Renaming USB WD 2TB drives
by Max Pyziur
Greetings,
I've been trying to use fatlabel to rename a Western Digital 2TB
USB/external drive. However, the results have been with no success either
with the drive mounted or not.
Much thanks for any advice on how to proceed.
(Related output is appended below),
Max Pyziur
pyz(a)brama.com
#################
root@pegasus ~> lsusb -d 1058:25e1
Bus 002 Device 005: ID 1058:25e1 Western Digital Technologies, Inc.
root@pegasus ~> dmesg | tail
[ 7678.356619] ses 6:0:0:1: Attached Enclosure device
[ 7678.356860] ready
[ 7678.357476] sd 6:0:0:0: [sdb] 3906963456 512-byte logical blocks: (2.00
TB/1.82 TiB)
[ 7678.359054] sd 6:0:0:0: [sdb] Write Protect is off
[ 7678.359056] sd 6:0:0:0: [sdb] Mode Sense: 47 00 10 08
[ 7678.360087] sd 6:0:0:0: [sdb] No Caching mode page found
[ 7678.360104] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 7678.421927] sdb: sdb1
[ 7678.425461] sd 6:0:0:0: [sdb] Attached SCSI disk
root@pegasus ~> fatlabel /dev/sdb1 EPRINC2TB
Currently, only 1 or 2 FATs are supported, not 0.
6 years, 2 months
What is this gibberish?
by Tom Horsley
Just did a dnf update, this comes out:
...
Running scriptlet: firefox-58.0.1-1.fc27.x86_64 18/18
Running scriptlet: firefox-58.0-4.fc27.x86_64 18/18
Running as unit: run-r1880116b569f49288e6d0da0c5832367.service
Running as unit: run-r329e01978cfe43258a05456898834edb.service
Verifying : GraphicsMagick-1.3.28-1.fc27.x86_64 1/18
Verifying : GraphicsMagick-c++-1.3.28-1.fc27.x86_64 2/18
...
Running as unit? Huh?
6 years, 2 months
Re: Riddle me this: grep / regx experts
by R. G. Newbury
Subject: Re: Riddle me this: grep / regx experts
> Allegedly, on or about 2 February 2018, R. G. Newbury sent:
>> I am cleaning up some html code, using sed to standardize the
>> formatting. I was searching for specific instances of code to amend
>> using grep.
>
> In case you're not aware of it, there's a HTML tidy command that
> neatens up HTML.
I am using sed basically for search and replace.
I already use tidy, but it does not deal with my problem which is that
the text has multiple variations in the *text* formatting in the many
different files. This screws up the parsing and requires normalization.
Tidy does not touch that. Unfortunately.
Geoff
R. Geoffrey Newbury
954 Owenwood Drive
Mississauga, Ontario, L5H 3J2
t905-271-9600 newbury(a)mandamus.org
6 years, 2 months
Copying/duplicating files from ServerA to ServerB
by bruce
Hi.
Looking to completely duplicate/replicate one server to
another.Running Centos/Fed. I've seen a number of different
articles/etc on different ways of doing this.
Assuming I'm not using chef/puppet/ansible/etc can anyone give
thoughts on best approaches for this. Articles are cool as well.
Key Items:
-Need to Maintain same users/passwds
-Need to maintain all dirs/files heirarchy
-Need all system/3rd party processes/apps running
-All config/cron files
-All port/db/ssh functions..
I'm testing the process to do this on cheap cloud vms so I can screw
up as I figure out best approach for this.
Thoughts/comments?
thanks
6 years, 2 months
fedora27: ypbind intermittent startup
by Terry Barnaby
I am finding on my systems that ypbind is failing occasionally at boot
(about 30% of the time).
[ OK ] Started Network Manager Wait Online.
[ OK ] Reached target Network is Online.
Mounting /src...
Mounting /scratch...
Starting NIS/YP (Network Information Service) Clients to NIS
Domain Binder...
Mounting /home...
Mounting /opt...
Mounting /dist...
Starting Notify NFS peers of a restart...
Starting Beam BOAP Name Server...
Mounting /usr/beam...
Mounting /var/cache/dnf...
[ OK ] Started Notify NFS peers of a restart.
[ OK ] Started Beam BOAP Name Server.
[FAILED] Failed to start NIS/YP (Network Information Service) Clients to
NIS Domain Binder.
See 'systemctl status ypbind.service' for details.
[ OK ] Reached target User and Group Name Lookups.
The error is:
Feb 1 10:34:36 beam1 ypbind[788]: No NIS server and no -broadcast
option specified.
Feb 1 10:34:36 beam1 ypbind[788]: Add a NIS server to the /etc/yp.conf
configuration file,
Feb 1 10:34:36 beam1 ypbind[788]: or start ypbind with the -broadcast
option.
But /etc/yp.conf has:
# generated by /sbin/dhclient-script
domain beamnet server 192.168.201.1
ypbind starts fine after the system has booted.
I assume that ypbind is being started by systemd before the dhcp client
has actually written into /etc/yp.conf.
Does the system " target Network is Online" get reached after DHCP
configuration ?
6 years, 2 months
vmware not working under vmware_t
by James Maugans
Hello.
I've been using Fedora and SELinux for over a year now. And so far I've
been able to succesfully confine some apps with SELinux context types,
however now I seem to be facing a challenge since I can't get vmware
process to work under vmware_t domain.
The process however does transition correctly toward vmware_t, but even
when I have granted the proper permissions, vmware isn't finding the kernel
modules, hence not starting.
Nonetheless I can sucessfully run vmware process under staff_t domain, of
course by granting the proper permission through a SELinux module.
Specifically the permission needed to do this under staff_t is:
allow vmware_t modules_object_t:file { getatt read open map };
Which allows me to correctly run vmware within the staff_t domain.
This doesn't happen at all if I attempt to use either the vmware_t or the
user_t domain, even though audit2allow doesn't reveal any AVC denial
preventing any of these domains from mapping the modules_object_t domain.
I've also gone through audit.log and there's nothing preventing the mapping
or access to that particular domain.
Currenlty I'm usin the Kernel 4.11.8 for Fedora 27 and vmware works fine
except when I try to run the process under vmware_t.
I'm lost at this point. And I'm sure this is a SELinux issue, since if I
set it to permissive vmware runs properly, but again, and with the module
in place granting access, audit2allow doesn't reveal anything.
I will greatly appreciatte any help or advice in this matter.
Best Regards.
James.
6 years, 2 months
Re: Riddle me this: grep / regx experts
by R. G. Newbury
>> On Fri, Feb 02, 2018 at 11:04:01AM -0500, R. G. Newbury wrote:
>> A bug in regx handling???
>>
>> I am cleaning up some html code
.....
>> # grep -h '[0-9]*s[0-9]*">' temp
>> Returns the example line with the 's[0-9]">' highlighted.
>> Can anyone explain what is happening?. This isn't politics so the group
>> [0-9] should not equal [0-9"#]. Or even [0-9\"\#].
>
.
> Fri, 2 Feb 2018 10:14:37 -0600 From: Chris Adams <linux(a)cmadams.net>
> A * in a regex is "0 or more of the previous", so basically you are just
> matching 's[0-9]*">' (because there will always be at least 0 of the
> [0-9] part at the start).
>
> If you really mean "1 or more", you can use an extended regex (the -E
> argument to grep/sed) and use + instead of *, so '[0-9]+s[0-9]*">'.
>
> Fri, 02 Feb 2018 16:15:37 +0000 From: Patrick O'Callaghan
> In grep, * matches any number of instances, including 0. You want to
> use + rather than * to guarantee at least one digit.
> Date: Fri, 2 Feb 2018 11:26:02 -0500 > From: Jon LaBadie<jonfu(a)jgcomp.com>
> You are misunderstanding the "*". It means any sequence of the
> associated character including a ZERO length sequence.
>
> So [0-9]*s matches "s (actually just the s) as is is a zero length
> sequence of digits followed by an s. When you grep for [0-9]s, there
> must be at least one digit before the s (but any extra digits are not
> part of the match). Sometimes the sequence [0-9][0-9]*s is useful to
> say "one or more digits before the s".
>
> jl
> Thanks to all for the quick responses. I *tried* to RTFM but that was
not clear, even on a re-read. I took [0-9]* as multiple instances of
[0-9] but NOT zero instances..
Geoff
6 years, 2 months