Ask Your Question

sksharma's profile - activity

2019-02-09 13:47:51 -0500 edited answer Kernel 4.19.15-300.fc29 broke bluetooth HIDP?

My bluetooth keyboard & mouse stopped working as well. I don't reboot regularly so I can't say with which kernel th

2019-02-09 08:22:30 -0500 edited answer Kernel 4.19.15-300.fc29 broke bluetooth HIDP?

My bluetooth keyboard & mouse stopped working as well. I don't reboot regularly so I can't say with which kernel th

2019-02-09 07:14:49 -0500 answered a question Kernel 4.19.15-300.fc29 broke bluetooth HIDP?

My bluetooth keyboard & mouse stopped working as well. I don't reboot regularly so I can't say with which kernel th

2019-02-09 05:57:41 -0500 received badge  Enthusiast
2017-07-16 12:29:53 -0500 received badge  Famous Question (source)
2016-11-23 06:52:19 -0500 answered a question xorg flickering with some applications - chrome, mpv

copying from

https://bugs.freedesktop.org/show_bug...

solution:

OK - running 20 minutes with zero visible flicker.

Hope this is not a heisenbug that will come back 10 minutes after I post this

solution: cvt generated modeline, run xrandr to get the name of your output port (here DisplayPort-0)

Modeline "3840x2160_50.00"  587.00  3840 4144 4560 5280  2160 2163 2168 2225 -hsync +vsync

xrandr --newmode "3840x2160_50.00"  587.00  3840 4144 4560 5280  2160 2163 2168 2225 -hsync +vsync
xrandr --addmode DisplayPort-0 "3840x2160_50.00" 
xrandr --output DisplayPort-0 --mode "3840x2160_50.00"
2016-11-22 14:57:11 -0500 received badge  Famous Question (source)
2016-11-22 14:52:41 -0500 commented question xorg flickering with some applications - chrome, mpv

submitted as a bug to the xorg bugzilla - looks like some kind of sync loss with video.

here's what it looks like

https://www.youtube.com/watch?v=YBg5j...

https://www.youtube.com/watch?v=V1xZl...

https://www.youtube.com/watch?v=cvsMA...

2016-11-22 07:59:15 -0500 received badge  Notable Question (source)
2016-11-22 07:59:15 -0500 received badge  Popular Question (source)
2016-11-22 07:57:46 -0500 received badge  Notable Question (source)
2016-11-22 07:57:46 -0500 received badge  Popular Question (source)
2016-11-21 08:42:45 -0500 asked a question xorg flickering with some applications - chrome, mpv

my xorg flickers a small amount, temporarily when the mouse moves from one window to another.

This flickering looks like pictures of the various windows I have open flashing on screen in different places for very short times.

The flickering is constant and massive when some applications run:

  • chrome (a little flickering most of the time chrome is focused, much worse when playing video),
  • mpv (only in full screen)
  • vlc (full screen only)

with these applications below the flickering is only when moving the pointer onto and off the window. If the pointer is in the window there's no flickering.

  • firefox (with or without video)
  • mplayer (at all - not in full screen, not in non- full screen)

    uname -a Linux fed2sam 4.8.8-200.fc24.x86_64 #1 SMP Tue Nov 15 19:41:51 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Xorg -version

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System:  4.7.9-200.fc24.x86_64 
Current Operating System: Linux fed2sam 4.8.8-200.fc24.x86_64 #1 SMP Tue Nov 15 19:41:51 UTC 2016 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.8.8-200.fc24.x86_64 root=LABEL=fed2_slash ro rhgb quiet LANG=en_CA.utf8
Build Date: 15 November 2016  04:39:46AM
Build ID: xorg-x11-server 1.18.4-5.fc24 
Current version of pixman: 0.34.0
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.

This began today - unfortunately I can't blame the most recent kernel upgrade because I did not restart my machine for several weeks - I don't know which kernel (or library or xorg) upgrade this started with

Any ideas on what could be happening here?

UPDATE: OK, it looks like mplayer in full screen produces this effect as well. I have no idea why a couple of times I tested it earlier it did not flicker, but now it is.

2016-06-24 13:59:11 -0500 answered a question virtualbox 5 fail on fedora 24, empty file /etc/profile.d/lang.sh

I discovered my mistake - there seems to have been a point where I moved files from that folder.

I must have made a typing error or I was doing the right thing but mistakenly in the wrong directory

I'll mark this as closed, thanks for reading

2016-06-24 10:47:38 -0500 commented question virtualbox 5 fail on fedora 24, empty file /etc/profile.d/lang.sh

$rpm -q system-config-language

system-config-language-3.3.0-3.fc24.noarch

$rpm -qV system-config-language

<BLANK>

$rpm -qV initscripts

missing     /etc/profile.d/256term.csh
missing     /etc/profile.d/256term.sh
missing     /etc/profile.d/lang.csh
missing     /etc/profile.d/lang.sh
S.5....T.    /etc/rc.d/init.d/functions
2016-06-23 16:12:49 -0500 asked a question virtualbox 5 fail on fedora 24, empty file /etc/profile.d/lang.sh

I solved the proximate problem (VB would not install) myself but the bug looks to be in Fedora (or I did my install incorrectly)

I had to comment line 69 in this file; (i typed that wrong earlier as line 64)

/etc/init.d/functions

for this part of the virtualbox setup to work properly

/usr/lib/virtualbox/vboxdrv.sh setup

what belongs in that commented file (IOW how to properly populate it?) it's empty on my system

/etc/profile.d/lang.sh

I don't know if this next program's failure is because that file's empty or the file's empty because this program's failing (running as root)

$ system-config-language 
Traceback (most recent call last):
  File "/usr/share/system-config-language/language_gui.py", line 349, in do_activate
    win = ChildWindow(self)
  File "/usr/share/system-config-language/language_gui.py", line 61, in __init__
    self.fill_store()
  File "/usr/share/system-config-language/language_gui.py", line 126, in fill_store
    lines = self.lang_backend.read_table()
  File "/usr/share/system-config-language/language_backend.py", line 94, in read_table
    lines = fd.readlines()
  File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 1513: ordinal not in range(128)
2016-06-22 07:31:41 -0500 received badge  Teacher (source)
2016-06-22 07:31:41 -0500 received badge  Self-Learner (source)
2016-06-21 14:28:13 -0500 answered a question make systemd shutdown wait

use the multiple ExecStop feature - systemd runs them serially, should wait for the 2nd ExecStop to finish before the service is considered stopped & poweroff/shutdown proceeds

it's not ideal as it may wait longer than needed, or if one guesses a shorter-than-needed time, shutdown will still kill the service earlier than needed but it's better than before.

ExecStop=/bin/vboxmanage guestcontrol 20150831_64b01 execute --image '%SystemRoot%/system32/shutdown.exe' --username sm  --password PASS --wait-exit -- -f -s -t 0 
ExecStop=/usr/bin/sleep 25
2016-05-30 22:35:38 -0500 commented question make systemd shutdown wait

the -t is a grace period for windows ... has no real effect for my purposes.

to clarify further, the -t parameter is for the guest OS's shutdown command - it's passed to the windows command

"%SystemRoot%\system32\shutdown.exe"

& has nothing to do with systemd - systemd never sees it

2016-05-30 22:18:23 -0500 received badge  Student (source)
2016-05-30 10:58:51 -0500 commented question make systemd shutdown wait

the -t is a grace period for windows users to shut down their work before the actual shutdown process kicks off - has no real effect for my purposes.

And I used 99 as a test earlier to confirm this.

2016-05-30 10:52:48 -0500 answered a question How do I get dual monitors working with AMD open source driver (xorg)?
 xrandr  --output 'VGA-0' --left-of 'LVDS'

may need

 xrandr  --output 'VGA-0' --auto --left-of 'LVDS'
2016-05-29 10:30:51 -0500 asked a question make systemd shutdown wait

I have this issue for virtualbox specifically but it also applies to any process that takes a while to shut down; the command

systemctl --user stop ...

returns before the VM has shut down, and the command

systemctl reboot

powers the system off before the VM has shut down

Is there any way to got systemd to wait for virtualbox? I tried the TimeoutStopSec=99 below for this but it's not working.

I'm not averse to having an arbitrary wait in there (so even if the VM is stopped, systemd still waits 30 more seconds for virtualbox

here's my user service file

Description=VBox Virtual Machine  Service

[Service]

ExecStart=-/bin/VirtualBox --comment 20150414 --startvm  20150831_64b01 --no-startvm-errormsgbox -seamless  

TimeoutStopSec=99
#ExecStop=/bin/vboxmanage controlvm 20150831_64b01 acpipowerbutton
#ExecStop=/bin/vboxmanage controlvm 20150831_64b01 savestate
#ExecStop=-/bin/vboxmanage guestcontrol 20150831_64b01 execute --image "%SystemRoot%\system32\shutdown.exe" --username sm  --password pass --wait-exit -- "-s" "-f" "-t" "0" 
ExecStop=/bin/vboxmanage guestcontrol 20150831_64b01 execute --image '%SystemRoot%/system32/shutdown.exe' --username sm  --password pass --wait-exit -- -f -s -t 0 
#ExecStop=-/bin/vboxmanage guestcontrol 20150831_64b02 execute --image '%SystemRoot%/system32/shutdown.exe' --username sm  --password pass --wait-exit -- -s -t 0 

#NEED 4 ExecStop ?
RemainAfterExit=true
KillMode=none

[Install]
WantedBy=multi-user.target

#https://technet.microsoft.com/en-ca/library/bb491003.aspx
#Syntax
#shutdown [{-l|-s|-r|-a}] [-f] [-m [\\ComputerName]] [-t xx] [-c "message"] [-d[u][p]:xx:yy]
#Top of page 
#Parameters
#-l   : Logs off the current user, this is also the defualt. -m ComputerName takes precedence.
#-s : Shuts down the local computer.
#-r   : Reboots after shutdown.
#-a   : Aborts shutdown. Ignores other parameters, except -l and ComputerName. You can only use -a during the time-out period.
#-f   : Forces running applications to close.
#-m [ \\ ComputerName ] : Specifies the computer that you want to shut down.
#-t   xx   : Sets the timer for system shutdown in xx seconds. The default is 20 seconds.
#-c   " message "   : Specifies a message to be displayed in the Message area of the System Shutdown window. You can use a maximum of 127 characters. You must enclose the message in quotation marks.
#-d [ u ][ p ] : xx : yy   : Lists the reason code for the shutdown. The following table lists the different values.
2016-02-22 00:32:33 -0500 received badge  Notable Question (source)
2016-02-22 00:32:33 -0500 received badge  Popular Question (source)
2016-01-07 14:50:59 -0500 answered a question installation on a second disk concurrent with using Fedora on the first

I do NOT know if this will work, I certainly have NOT done it.

last time I used Virtualbox I saw the option to allow the guest to use a real physical partition instead of a file.

that could work for you - download the image you need & let VB use a whole disk - maybe anaconda will work on that partition/disk.

2015-11-19 13:46:03 -0500 answered a question last upgrade broke ssl applications broke

from the above list I did not notice these

nss-softokn                     x86_64       3.21.0-1.0.fc23
nss-softokn-freebl              x86_64       3.21.0-1.0.fc23

I downloaded the RPMs manually from one of:

https://admin.fedoraproject.org/mirro...

and manually upgraded them

$rpm --upgrade nss-softokn*
2015-11-19 12:53:33 -0500 commented question minimizing dnf transaction size

this is exactly what I was doing & will not do again, after losing 2 hours on debugging a problem I created for myself doing this.

Here's the dumb mistake: upgraded nss but not other related stuff - the problem I created for myself https://ask.fedoraproject.org/en/ques...

2015-11-19 12:53:32 -0500 asked a question last upgrade broke ssl applications broke

(This entry is relevant as a counter example in another question I asked here: https://ask.fedoraproject.org/en/ques... )

I tried to upgrade this morning (november 19).

I upgraded dnf itself first (I suspected I err'd here; in seeking minimum transaction size I triggered a dependency issue for dnf), then upgraded nss then tried to upgrade the rest.

$rpm -q dnf dnf-plugins-core 
dnf-1.1.4-1.fc23.noarch
dnf-plugins-core-0.1.14-1.fc23.noarch

The upgrade did not appear to even start (dnf just exited with no output) and afterward dnf started producing this error (and little other output)

Error: Failed to synchronize cache for repo 'fedora' from 'https://mirrors.fedoraproject.org/metalink?repo=fedora-23&arch=x86_64': Cannot prepare internal mirrorlist: Curl error (35): SSL connect error for https://mirrors.fedoraproject.org/met... [The security card or token does not exist, needs to be initialized, or has been removed.]

Firefox is producing that last little bit for all https access

The security card or token does not exist, needs to be initialized, or has been removed

The last output I got from dnf:

Last metadata expiration check performed 1:08:41 ago on Thu Nov 19 09:38:43 2015.
Dependencies resolved.
=============================================================
 Package                         Arch         Version        
=============================================================
Installing:
 kernel                          x86_64       4.2.6-300.fc23 
 kernel-core                     x86_64       4.2.6-300.fc23 
 kernel-devel                    x86_64       4.2.6-300.fc23 
 kernel-modules                  x86_64       4.2.6-300.fc23 
 kernel-modules-extra            x86_64       4.2.6-300.fc23 
Upgrading:
 dbus-python                     x86_64       1.2.0-12.fc23  
 ibus-libpinyin                  x86_64       1.7.3-1.fc23   
 ibus-typing-booster             noarch       1.2.15-1.fc23  
 kernel-headers                  x86_64       4.2.6-300.fc23 
 libinput                        x86_64       1.1.1-1.fc23   
 libodfgen                       x86_64       0.1.5-2.fc23   
 libpinyin                       x86_64       1.2.91-1.fc23  
 libpinyin-data                  x86_64       1.2.91-1.fc23  
 mpfr                            x86_64       3.1.3-2.fc23   
 nss-softokn                     x86_64       3.21.0-1.0.fc23
 nss-softokn-freebl              x86_64       3.21.0-1.0.fc23
 openssl                         x86_64       1:1.0.2d-3.fc23
 openssl-devel                   x86_64       1:1.0.2d-3.fc23
 openssl-libs                    x86_64       1:1.0.2d-3.fc23
 perl-Carp                       noarch       1.38-1.fc23    
 perl-PathTools                  x86_64       3.59-1.fc23    
 perl-Time-HiRes                 x86_64       1.9728-1.fc23  
 python3-dbus                    x86_64       1.2.0-12.fc23  
 unbound-libs                    x86_64       1.5.6-1.fc23   
Removing:
 kernel                          x86_64       4.2.3-200.fc22 
 kernel-core                     x86_64       4.2.3-200.fc22 
 kernel-devel                    x86_64       4.2.3-200.fc22 
 kernel-modules                  x86_64       4.2.3-200.fc22 
 kernel-modules-extra            x86_64       4.2.3-200.fc22 

Transaction Summary
==================================================
Install   5 Packages
Upgrade  19 Packages
Remove    5 Packages

I suspected openssl was the issue ($rpm -q openssl reported openssl had not been upgraded)

so I manually downloaded and installed those 3 RPMs and that did not fix this.

2015-11-12 12:18:48 -0500 asked a question minimizing dnf transaction size

I had 2 cases where one package out of a large transaction[1] could not be rolled back, preventing the rollback of many packages.

So for future safety are there ways of minimizing dnf transaction size- keeping the number of packages upgraded in one transaction at the smallest possible?

[1] one where many packages were upgraded

2015-09-22 06:25:28 -0500 commented answer selinux preventing systemd services

this Workaround did not work directly but following the bug report, a reboot did

I am still not sure if installing the sandbox policies and utilities had anything to do with this in my case - next time I experiment with that I'll try to come back and update this

2015-09-22 05:59:21 -0500 received badge  Scholar (source)
2015-09-19 14:07:47 -0500 commented answer selinux preventing systemd services

the root based terminal switching works after doing this but the user services are unaffected; with setenforce 0 this works, with setenforce 1 I get issues

$systemctl --user stop awar.servicec

same messages as above, nothing in /var/log/audit/audit.log

How much more detail do I need to put this over in the bugzilla?

2015-09-18 13:17:42 -0500 asked a question selinux preventing systemd services

the latest dnf changes I made were

Command Line : install policycoreutils-sandbox

Command Line : install policycoreutils-newrole

(I wanted to check out the sandbox features)

and a system update before that (details at question's end) - I suspect the update was not the cause because I do these actions regularly and beelieve I did at least a few after the update but before playing with the sandbox

I have since removed both of those but I suspect a setting has stuck around that's causing problems

$ systemctl --user stop vboxvmservice.service

Failed to stop vboxvmservice.service: Access denied

Failed to get load state of vboxvmservice.service: Access denied

here's the journalctl Sep 18 13:05:41 samain systemd[1353]: Can't send to audit system: USER_AVC avc: denied { status } for auid=1000 uid=1000 gid=1000 path="/home/sam/.config/systemd/user/vboxvmservice.service" cmdline="systemctl --user stop vboxvmservice.service" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=service exe=2F7573722F6C69622F73797374656D642F73797374656D64202864656C6574656429 sauid=0 hostname=? addr=? terminal=?

and there's nothing in the /var/log/audit/audit.log

another symptom - when trying to switch TTYs this is in the journal

Sep 18 13:10:01 samain systemd-logind[987]: Failed to start autovt@tty8.service : Access denied

another one (as root)

type=USER_AVC msg=audit(1442596423.976:1429): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { status } for auid=1000 uid=0 gid=0 path="/usr/lib/systemd/system/getty@.service" cmdline="systemctl stop getty@tty9.service" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:getty_unit_file_t:s0 tclass=service exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'

$systemctl stop  getty@tty9.service

gives the terminal message

Failed to stop getty@tty9.service : Access denied

audit.log type=USER_AVC msg=audit(1442596423.976:1429): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { status } for auid=1000 uid=0 gid=0 path="/usr/lib/systemd/system/getty@.service" cmdline="systemctl stop getty@tty9.service" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:getty_unit_file_t:s0 tclass=service exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'

and the journal Sep 18 13:15:47 samain polkitd[1045]: Registered Authentication Agent for unix-process:19248:16223320 (system bus name :1.208 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_CA.UTF-8) Sep 18 13:15:47 samain audit[1]: pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { stop } for auid=1000 uid=0 gid=0 path="/usr/lib/systemd/system/getty@.service" cmdline="systemctl stop getty@tty9.service" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:getty_unit_file_t:s0 tclass=service exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?' Sep 18 13:15:47 samain audit[1]: pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { status ... (mais)