[Touch-packages] [Bug 1903995] Re: upower report wrong battery percentage for Logitech Unify devices

2020-11-13 Thread Pablo Catalina
I recharged the mouse, but:

$ solaar show
Unifying Receiver
  Device path  : /dev/hidraw0
  USB id   : 046d:c52b
  Serial   : 23FF9429
Firmware   : 12.10.B0032
Bootloader : 02.15
Other  : AA.AA
  Has 3 paired device(s) out of a maximum of 6.
  Notifications: wireless (0x000100)
  Device activity counters: 1=70, 2=105

  1: Wireless Keyboard K270(unifying)
 Codename : K270(unifying)
 Kind : keyboard
 Wireless PID : 4003
 Protocol : HID++ 2.0
 Polling rate : 20 ms (50Hz)
 Serial number: 1A395FC1
  Firmware: RQK 35.00.B0017
 The power switch is located on the top case.
 Supports 12 HID++ 2.0 features:
 0: ROOT   {}   
 1: FEATURE SET{0001}   
 2: DEVICE FW VERSION  {0003}   
 3: DEVICE NAME{0005}   
 4: BATTERY STATUS {1000}   
 5: unknown:1820   {1820}   hidden
 6: REPROG CONTROLS{1B00}   
 7: WIRELESS DEVICE STATUS {1D4B}   
 8: unknown:1DF0   {1DF0}   hidden
 9: unknown:1DF3   {1DF3}   hidden
10: ENCRYPTION {4100}   
11: KEYBOARD LAYOUT{4520}   
 Has 8 reprogrammable keys:
 0: Play/Pause => Play/Pause
nonstandard
 1: Mute   => Mute  
nonstandard
 2: Volume Down=> Volume Down   
nonstandard
 3: Volume Up  => Volume Up 
nonstandard
 4: MY HOME=> HomePage  
nonstandard, reprogrammable
 5: Mail   => Email 
nonstandard, reprogrammable
 6: SLEEP  => Sleep 
nonstandard, reprogrammable
 7: Calculator => Calculator
nonstandard, reprogrammable
 Battery: 70%, discharging.

  2: Wireless Mouse MX Master
 Codename : MX Master
 Kind : mouse
 Wireless PID : 4071
 Protocol : HID++ 4.5
 Polling rate : 8 ms (125Hz)
 Serial number: F8EBBFD1
Bootloader: BOT 56.10.B0005
  Firmware: MPM 12.10.B0005
  Firmware: MPM 12.10.B0005
 Other: 
 The power switch is located on the base.
 Supports 32 HID++ 2.0 features:
 0: ROOT   {}   
 1: FEATURE SET{0001}   
 2: DEVICE FW VERSION  {0003}   
 3: DEVICE NAME{0005}   
 4: WIRELESS DEVICE STATUS {1D4B}   
 5: RESET  {0020}   
 6: unknown:0021   {0021}   
 7: BATTERY STATUS {1000}   
 8: unknown:1806   {1806}   internal, hidden
 9: CHANGE HOST{1814}   
10: REPROG CONTROLS V4 {1B04}   
11: ADJUSTABLE DPI {2201}   
12: VERTICAL SCROLLING {2100}   
Roller type: 3G
Ratchet per turn: 24
Scroll lines: 0
13: SMART SHIFT{2110}   
14: HIRES WHEEL{2121}   
Multiplier: 8
Has invert
  Normal wheel motion
Has ratchet switch
  Normal wheel mode
High resolution mode
HID notification
15: GESTURE 2  {6501}   
16: unknown:00C2   {00C2}   
17: unknown:1813   {1813}   internal, hidden
18: unknown:1830   {1830}   internal, hidden
19: unknown:1890   {1890}   internal, hidden
20: unknown:1891   {1891}   internal, hidden
21: unknown:18A1   {18A1}   internal, hidden
22: unknown:18C0   {18C0}   internal, hidden
23: unknown:1DF3   {1DF3}   internal, hidden
24: unknown:1E00   {1E00}   hidden
25: unknown:1EB0   {1EB0}   internal, hidden
26: unknown:1803   {1803}   internal, hidden
27: unknown:1861   {1861}   internal, hidden
28: unknown:9001   {9001}   internal, hidden
29: unknown:9200   {9200}   internal, hidden
30: unknown:9202   {9202}   internal, hidden
31: unknown:1805   {1805}   internal, hidden
 Has 8 reprogrammable keys:
 0: LEFT CLICK, default: LeftClick   => 
LEFT CLICK
 mse, pos:0, group:1, gmask:1
 1: RIGHT CLICK   , default: RightClick  => 
RIGHT CLICK   
 mse, pos:0, group:1, gmask:1
 2: MIDDLE BUTTON , default: MiddleMouseButton   => 
MIDDLE BUTTON 
 mse, reprogrammable, divertable, pos:0, group:3, gmask:7
 3: BACK AS BUTTON 4 

[Touch-packages] [Bug 1903995] [NEW] upower report wrong battery percentage for Logitech Unify devices

2020-11-12 Thread Pablo Catalina
Public bug reported:

The battery percentage reported by upower for Logitech devices connected
using Unify receiver are wrong.  Below are the results for two devices:
Mouse and Keyboard:

* Battery percentages reported by Unify receiver using Solaar:

$ solaar show  | grep -iP "^((  \d: )|(.*batt.*))"
  1: Wireless Keyboard K270(unifying)
 4: BATTERY STATUS {1000}
 Battery: 70%, discharging.
  2: Wireless Mouse MX Master
 7: BATTERY STATUS {1000}
 Battery: 20%, discharging.


* Battery percentages reported by upower:

$ upower -i /org/freedesktop/UPower/devices/keyboard_hidpp_battery_0
  native-path:  hidpp_battery_0
  model:Wireless Keyboard K270
  serial:   4003-1a-39-5f-c1
  power supply: no
  updated:  Thu 12 Nov 2020 13:59:18 CET (119 seconds ago)
  has history:  yes
  has statistics:   yes
  keyboard
present: yes
rechargeable:yes
state:   discharging
warning-level:   none
battery-level:   normal
percentage:  55% (should be ignored)
icon-name:  'battery-low-symbolic'

$ upower -i /org/freedesktop/UPower/devices/mouse_hidpp_battery_1
  native-path:  hidpp_battery_1
  model:Wireless Mouse MX Master
  serial:   4071-f8-eb-bf-d1
  power supply: no
  updated:  Thu 12 Nov 2020 14:03:14 CET (27 seconds ago)
  has history:  yes
  has statistics:   yes
  mouse
present: yes
rechargeable:yes
state:   discharging
warning-level:   low
battery-level:   low
percentage:  10% (should be ignored)
icon-name:  'battery-caution-symbolic'


Basically the difference is big so I'm getting a lot of notifications
related to low battery even if the battery is OK:

* Mouse, upower: 10%real (Solaar): 20%
* Keyboard: upower: 70%real (Solaar): 55%


ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: upower 0.99.11-1build2
ProcVersionSignature: Ubuntu 5.4.0-53.59-generic 5.4.65
Uname: Linux 5.4.0-53-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.11
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Thu Nov 12 13:58:35 2020
InstallationDate: Installed on 2020-04-19 (206 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200417)
SourcePackage: upower
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.apport.crashdb.conf: 2020-06-17T11:02:56.934699

** Affects: upower (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug focal

** Description changed:

  The battery percentage reported by upower for Logitech devices connected
  using Unify receiver are wrong.  Below are the results for two devices:
  Mouse and Keyboard:
  
- 
  * Battery percentages reported by Unify receiver using Solaar:
  
  $ solaar show  | grep -iP "^((  \d: )|(.*batt.*))"
-   1: Wireless Keyboard K270(unifying)
-  4: BATTERY STATUS {1000}   
-  Battery: 70%, discharging.
-   2: Wireless Mouse MX Master
-  7: BATTERY STATUS {1000}   
-  Battery: 20%, discharging.
+   1: Wireless Keyboard K270(unifying)
+  4: BATTERY STATUS {1000}
+  Battery: 70%, discharging.
+   2: Wireless Mouse MX Master
+  7: BATTERY STATUS {1000}
+  Battery: 20%, discharging.
  
  
  * Battery percentages reported by upower:
+ 
  $ upower -i /org/freedesktop/UPower/devices/keyboard_hidpp_battery_0
-   native-path:  hidpp_battery_0
-   model:Wireless Keyboard K270
-   serial:   4003-1a-39-5f-c1
-   power supply: no
-   updated:  Thu 12 Nov 2020 13:59:18 CET (119 seconds ago)
-   has history:  yes
-   has statistics:   yes
-   keyboard
- present: yes
- rechargeable:yes
- state:   discharging
- warning-level:   none
- battery-level:   normal
- percentage:  55% (should be ignored)
- icon-name:  'battery-low-symbolic'
+   native-path:  hidpp_battery_0
+   model:Wireless Keyboard K270
+   serial:   4003-1a-39-5f-c1
+   power supply: no
+   updated:  Thu 12 Nov 2020 13:59:18 CET (119 seconds ago)
+   has history:  yes
+   has statistics:   yes
+   keyboard
+ present: yes
+ rechargeable:yes
+ state:   discharging
+ warning-level:   none
+ battery-level:   normal
+ percentage:  55% (should be ignored)
+ icon-name:  'battery-low-symbolic'
  
- $ upower -i /org/freedesktop/UPower/devices/mouse_hidpp_battery_1 
-   native-path:  hidpp_battery_1
-   model:Wireless Mouse MX Master
-   serial: 

[Touch-packages] [Bug 1866194] Re: External audio device shows up in the sound output options but the sound keeps being emitted from the internal laptop speaker, or none at all.

2020-04-28 Thread Pablo Catalina
I had the same problem with a Thunderbolt audio device and BT. I removed 
.config/pulse and started working fine again.
Not sure if it will fail, but for the moment is working.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/1866194

Title:
  External audio device shows up in the sound output options but the
  sound keeps being emitted from the internal laptop speaker, or none at
  all.

Status in gnome-control-center:
  Unknown
Status in PulseAudio:
  New
Status in gnome-control-center package in Ubuntu:
  Invalid
Status in pulseaudio package in Ubuntu:
  In Progress
Status in gnome-control-center source package in Focal:
  Invalid
Status in pulseaudio source package in Focal:
  In Progress

Bug description:
  Ubuntu version: focal dev
  Kernel version: 5.4.0-14-generic #17-Ubuntu SMP Thu Feb 6 22:47:59 UTC 2020
  Pulseaudio: 1:13.99.1-1ubuntu1
  Device CID: 201704-25503

  Steps to reproduce:

  1. Connect an audio interface. I tried with BT headphones and speakers as 
well as a USB microphone/output.
  2. Make sure it's the one selected as "Output device"
  3. Click "Test"
  -> the test sound outputs from the internal laptop speakers (NOK)
  4. Select "Speakers - Built-in Audio" as Output device and click "Test"
  -> the test sound outputs from the internal laptop speakers (OK)
  5. Try to switch back to the BT device and click Test
  -> same result as in step 3

  Tested with 2 different BT devices (one headset and one speaker) as
  well as a USB audio interface (Zoom H2N microphone).

  Attached are btmon logs captured during the procedure described above,
  and pactl logs capture after step 7.

  I was previously using 19.04 and 19.10 on this device and never
  experienced this kind of issue.

  Up to this morning, it was harder to connect the BT device, but once
  connected, the sound would output on it as expected. Now, the BT
  connection seems to work better, but I can't output the sound to the
  BT device...

  I tried to reboot the device, and also to suspend/resume, but in each
  case, the BT device can connect back, but the sound is still output
  from the internal laptop speakers, even when the BT device is selected
  in the Sound settings.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: pulseaudio 1:13.99.1-1ubuntu1
  ProcVersionSignature: Ubuntu 5.4.0-14.17-generic 5.4.18
  Uname: Linux 5.4.0-14-generic x86_64
  ApportVersion: 2.20.11-0ubuntu18
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  pieq   1566 F pulseaudio
   /dev/snd/pcmC0D0c:   pieq   1566 F...m pulseaudio
   /dev/snd/pcmC0D0p:   pieq   1566 F...m pulseaudio
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Mar  5 22:15:50 2020
  InstallationDate: Installed on 2020-01-17 (48 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20200116)
  SourcePackage: pulseaudio
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/23/2019
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: 1.14.0
  dmi.board.vendor: Dell Inc.
  dmi.chassis.type: 10
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvr1.14.0:bd04/23/2019:svnDellInc.:pnInspiron7370:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct10:cvr:
  dmi.product.family: Inspiron
  dmi.product.name: Inspiron 7370
  dmi.product.sku: 07E9
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-control-center/+bug/1866194/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1845801] Re: [nvidia] Automatic login fails and then all subsequent logins fail. Killing gnome-session-binary fixes it, or just not using automatic login.

2020-04-23 Thread Pablo Catalina
I installed Ubuntu 20.04 5 days ago (using the daily iso) and works fine
with Quadro P3200 Mobile and default proprietary drivers installed.

I installed it setting up the user with autologon from the installer.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1845801

Title:
  [nvidia] Automatic login fails and then all subsequent logins fail.
  Killing gnome-session-binary fixes it, or just not using automatic
  login.

Status in gdm3 package in Ubuntu:
  Confirmed
Status in gnome-session package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-390 package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-430 package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-435 package in Ubuntu:
  Confirmed
Status in systemd package in Ubuntu:
  Invalid
Status in gdm3 source package in Eoan:
  Confirmed
Status in gnome-session source package in Eoan:
  Confirmed
Status in nvidia-graphics-drivers-435 source package in Eoan:
  Confirmed

Bug description:
  I just updated to the Ubuntu 19.10 beta. After boot, I'm shown the GDM
  login screen (which I shouldn't; I have auto login enabled), and
  logging in just takes me back to the same user selection screen even
  though the password is correct.

  If I switch to a TTY and run `sudo pkill gnome-session-binary`,
  logging in through GDM starts working again.

  I should add that the do-release-upgrade was rocky; I did it in a
  terminal from within gnome, went away for a while, and when I
  returned, I just saw an Ubuntu 19.10 in a TTY. I was able to do `sudo
  dpkg --configure -a` and complete the upgrade, but I don't know if
  something's still messed up due to that.

  ProblemType: Bug
  DistroRelease: Ubuntu 19.10
  Package: xorg 1:7.7+19ubuntu12
  ProcVersionSignature: Ubuntu 5.3.0-13.14-generic 5.3.0
  Uname: Linux 5.3.0-13-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  .proc.driver.nvidia.gpus..01.00.0: Error: [Errno 21] Is a directory: 
'/proc/driver/nvidia/gpus/:01:00.0'
  .proc.driver.nvidia.registry: Binary: ""
  .proc.driver.nvidia.suspend: suspend hibernate resume
  .proc.driver.nvidia.suspend_depth: default modeset uvm
  .proc.driver.nvidia.version:
   NVRM version: NVIDIA UNIX x86_64 Kernel Module  435.21  Sun Aug 25 08:17:57 
CDT 2019
   GCC version:  gcc version 9.2.1 20190909 (Ubuntu 9.2.1-8ubuntu1)
  ApportVersion: 2.20.11-0ubuntu7
  Architecture: amd64
  BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
  CompositorRunning: None
  CurrentDesktop: ubuntu:GNOME
  Date: Sat Sep 28 19:55:42 2019
  DistUpgraded: 2019-09-28 18:35:15,142 INFO cache.commit()
  DistroCodename: eoan
  DistroVariant: ubuntu
  DkmsStatus: nvidia, 435.21, 5.3.0-13-generic, x86_64: installed
  ExtraDebuggingInterest: Yes
  GraphicsCard:
   NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] [10de:1b06] (rev a1) (prog-if 
00 [VGA controller])
 Subsystem: ASUSTeK Computer Inc. GP102 [GeForce GTX 1080 Ti] [1043:85e4]
  InstallationDate: Installed on 2019-09-14 (13 days ago)
  InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
  MachineType: MSI MS-7A67
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.3.0-13-generic 
root=UUID=04974c80-e732-49b6-8148-c3dce7c02a25 ro quiet splash vt.handoff=7
  SourcePackage: xorg
  Symptom: display
  Title: Xorg crash
  UpgradeStatus: Upgraded to eoan on 2019-09-28 (0 days ago)
  dmi.bios.date: 01/25/2018
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 2.60
  dmi.board.asset.tag: Default string
  dmi.board.name: H270I GAMING PRO AC (MS-7A67)
  dmi.board.vendor: MSI
  dmi.board.version: 1.0
  dmi.chassis.asset.tag: Default string
  dmi.chassis.type: 3
  dmi.chassis.vendor: MSI
  dmi.chassis.version: 1.0
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr2.60:bd01/25/2018:svnMSI:pnMS-7A67:pvr1.0:rvnMSI:rnH270IGAMINGPROAC(MS-7A67):rvr1.0:cvnMSI:ct3:cvr1.0:
  dmi.product.family: Default string
  dmi.product.name: MS-7A67
  dmi.product.sku: Default string
  dmi.product.version: 1.0
  dmi.sys.vendor: MSI
  version.compiz: compiz N/A
  version.libdrm2: libdrm2 2.4.99-1ubuntu1
  version.libgl1-mesa-dri: libgl1-mesa-dri 19.1.6-1ubuntu1
  version.libgl1-mesa-glx: libgl1-mesa-glx N/A
  version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
  version.xserver-xorg-core: xserver-xorg-core 2:1.20.5+git20190820-0ubuntu3
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.0.1-1
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 
2:2.99.917+git20190815-1
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1845801/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net

[Touch-packages] [Bug 1873764] [NEW] CUPS Apparmor Error opening /proc/sys/kernel/random/boot_id

2020-04-20 Thread Pablo Catalina
Public bug reported:

I noted the following messages on a just installed Ubuntu Focal:

$ dmesg | grep cups
[ 1769.505132] audit: type=1400 audit(1587372138.575:3011): apparmor="DENIED" 
operation="capable" profile="/usr/sbin/cups-browsed" pid=15230 
comm="cups-browsed" capability=23  capname="sys_nice"
[ 1776.623181] audit: type=1400 audit(1587372145.693:3012): apparmor="DENIED" 
operation="capable" profile="/usr/sbin/cups-browsed" pid=15510 
comm="cups-browsed" capability=23  capname="sys_nice"
[ 2040.426033] audit: type=1400 audit(1587372409.494:3013): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2040.426044] audit: type=1400 audit(1587372409.494:3014): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2040.426074] audit: type=1400 audit(1587372409.494:3015): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2040.426092] audit: type=1400 audit(1587372409.494:3016): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2040.426106] audit: type=1400 audit(1587372409.494:3017): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2041.404914] audit: type=1400 audit(1587372410.473:3018): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2041.404920] audit: type=1400 audit(1587372410.473:3019): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2041.404926] audit: type=1400 audit(1587372410.473:3020): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2041.404953] audit: type=1400 audit(1587372410.473:3021): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2041.404963] audit: type=1400 audit(1587372410.473:3022): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2071.925327] audit: type=1400 audit(1587372440.994:3028): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2071.925330] audit: type=1400 audit(1587372440.994:3029): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2071.925337] audit: type=1400 audit(1587372440.994:3030): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2071.925382] audit: type=1400 audit(1587372440.994:3031): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2071.925391] audit: type=1400 audit(1587372440.994:3032): apparmor="DENIED" 
operation="open" profile="/usr/sbin/cupsd" 
name="/proc/sys/kernel/random/boot_id" pid=15508 comm="cupsd" 
requested_mask="r" denied_mask="r" fsuid=0 ouid=0


It happened after installing Brother DCPL3550CDW Linux drivers.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: cups-daemon 2.3.1-9ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-25.29-lowlatency 5.4.30
Uname: Linux 5.4.0-25-lowlatency x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 20 10:49:08 2020
InstallationDate: Installed on 2020-04-19 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200417)
Lpstat: device for DCPL3550CDW: 
dnssd://Brother%20DCP-L3550CDW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-3c2af4b66edd
MachineType: LENOVO 20MAS0DF03
Papersize: a4
PpdFiles: DCPL3550CDW: Brother DCP-L3550CDW CUPS
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.4.0-25-lowlatency 
root=/dev/mapper/vgubuntu-root ro quiet splash vt.handoff=7
SourcePackage: cups
UpgradeStatus: No upgrade log 

[Touch-packages] [Bug 1759150] [NEW] systemd stopped resolving after back from suspend

2018-03-27 Thread Pablo Catalina
Public bug reported:

I noted it after back from suspend, but could happens on other
conditions:

systemd-resolved stopped resolving.


$ host google.com 127.0.0.53
Using domain server:
Name: 127.0.0.53
Address: 127.0.0.53#53
Aliases:

Host google.com not found: 2(SERVFAIL)


But resolved service is active without problems.

● systemd-resolved.service - Network Name Resolution
   Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; 
vendor preset: enabled)
   Active: active (running) since Tue 2018-03-27 09:27:46 CEST; 11min ago
 Docs: man:systemd-resolved.service(8)
   https://www.freedesktop.org/wiki/Software/systemd/resolved
   
https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
   
https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
 Main PID: 11822 (systemd-resolve)
   Status: "Processing requests..."
Tasks: 1 (limit: 4915)
   CGroup: /system.slice/systemd-resolved.service
   └─11822 /lib/systemd/systemd-resolved

Mar 27 09:28:01 myhostname systemd-resolved[11822]: Got packet on unexpected IP 
range, refusing.
Mar 27 09:28:06 myhostname systemd-resolved[11822]: Got packet on unexpected IP 
range, refusing.
Mar 27 09:28:42 myhostname systemd-resolved[11822]: Got packet on unexpected IP 
range, refusing.
Mar 27 09:29:07 myhostname systemd-resolved[11822]: Got packet on unexpected IP 
range, refusing.
Mar 27 09:29:11 myhostname systemd-resolved[11822]: Got packet on unexpected IP 
range, refusing.
Mar 27 09:30:11 myhostname systemd-resolved[11822]: Got packet on unexpected IP 
range, refusing.
Mar 27 09:30:32 myhostname systemd-resolved[11822]: Got packet on unexpected IP 
range, refusing.
Mar 27 09:30:37 myhostname systemd-resolved[11822]: Got packet on unexpected IP 
range, refusing.
Mar 27 09:38:10 myhostname systemd-resolved[11822]: Got packet on unexpected IP 
range, refusing.
Mar 27 09:38:15 myhostname systemd-resolved[11822]: Got packet on unexpected IP 
range, refusing.


I checked the network traffic:

09:38:15.476106 IP 10.66.57.54.48901 > 127.0.0.53.53: 7013+ A? google.com. (28)
09:38:15.476205 IP 127.0.0.53.53 > 127.0.0.1.48901: 7013 ServFail [0q] 0/0/0 
(12)


And resolv service works fine:

$ systemd-resolve google.com
google.com: 216.58.214.174

-- Information acquired via protocol DNS in 7.2ms.
-- Data is authenticated: no


ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: systemd 234-2ubuntu12.3
ProcVersionSignature: Ubuntu 4.13.0-37.42-generic 4.13.13
Uname: Linux 4.13.0-37-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 27 09:34:21 2018
InstallationDate: Installed on 2018-02-16 (38 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20180105.1)
MachineType: Apple Inc. MacBookPro11,4
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.13.0-37-generic.efi.signed 
root=/dev/mapper/ubuntu--vg-root ro quiet splash
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/08/2017
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP114.88Z.0177.B00.1708080033
dmi.board.name: Mac-06F11FD93F0323C5
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro11,4
dmi.chassis.type: 9
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-06F11FD93F0323C5
dmi.modalias: 
dmi:bvnAppleInc.:bvrMBP114.88Z.0177.B00.1708080033:bd08/08/2017:svnAppleInc.:pnMacBookPro11,4:pvr1.0:rvnAppleInc.:rnMac-06F11FD93F0323C5:rvrMacBookPro11,4:cvnAppleInc.:ct9:cvrMac-06F11FD93F0323C5:
dmi.product.family: MacBook Pro
dmi.product.name: MacBookPro11,4
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

** Affects: systemd (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug artful

** Description changed:

  I noted it after back from suspend, but could happens on other
  conditions:
  
  systemd-resolved stopped resolving.
  
- 
- 
+ 
  $ host google.com 127.0.0.53
  Using domain server:
  Name: 127.0.0.53
  Address: 127.0.0.53#53
- Aliases: 
+ Aliases:
  
  Host google.com not found: 2(SERVFAIL)
- 
+ 
  
  But resolved service is active without problems.
  
  ● systemd-resolved.service - Network Name Resolution
-Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; 
vendor preset: enabled)
-Active: active (running) since Tue 2018-03-27 09:27:46 CEST; 11min ago
-  Docs: man:systemd-resolved.service(8)
-https://www.freedesktop.org/wiki/Software/systemd/resolved
-
https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
-
https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
-  Main PID: 11822 (systemd-resolve)
-Status: "Processing requests..."
- Tasks: 1 (limit: 4915)
-CGroup: /system.slice/systemd-resolved.service
-└─11822 /lib/systemd/systemd-resolved
+    Loaded: loaded 

[Touch-packages] [Bug 1522675] Re: Can't drop privileges for downloading : _apt user not allowed

2016-11-04 Thread Pablo Catalina
I have similar problem with flashplugin-installer and ttf-mscorefonts-
installer packages:

flashplugin-installer: processing...
flashplugin-installer: downloading 
http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_20161026.1.orig.tar.gz
Get:1 
http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_20161026.1.orig.tar.gz
 [27,2 MB]
Fetched 27,2 MB in 25s (1.085 kB/s) 


W: Can't drop privileges for downloading as file 
'/var/lib/update-notifier/package-data-downloads/partial/adobe-flashplugin_20161026.1.orig.tar.gz'
 couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Installing from local file 
/var/lib/update-notifier/package-data-downloads/partial/adobe-flashplugin_20161026.1.orig.tar.gz
Flash Plugin installed.
ttf-mscorefonts-installer: processing...
ttf-mscorefonts-installer: downloading 
http://downloads.sourceforge.net/corefonts/andale32.exe
Get:1 http://downloads.sourceforge.net/corefonts/andale32.exe [198 kB]
Fetched 198 kB in 2s (96,3 kB/s)
 
W: Can't drop privileges for downloading as file 
'/var/lib/update-notifier/package-data-downloads/partial/andale32.exe' couldn't 
be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading 
http://downloads.sourceforge.net/corefonts/arial32.exe
Get:1 http://downloads.sourceforge.net/corefonts/arial32.exe [554 kB]
Fetched 554 kB in 2s (248 kB/s) 
 
W: Can't drop privileges for downloading as file 
'/var/lib/update-notifier/package-data-downloads/partial/arial32.exe' couldn't 
be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading 
http://downloads.sourceforge.net/corefonts/arialb32.exe
Get:1 http://downloads.sourceforge.net/corefonts/arialb32.exe [168 kB]
Fetched 168 kB in 2s (71,9 kB/s)
 
W: Can't drop privileges for downloading as file 
'/var/lib/update-notifier/package-data-downloads/partial/arialb32.exe' couldn't 
be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading 
http://downloads.sourceforge.net/corefonts/comic32.exe
Get:1 http://downloads.sourceforge.net/corefonts/comic32.exe [246 kB]
Fetched 246 kB in 2s (95,3 kB/s)
 
W: Can't drop privileges for downloading as file 
'/var/lib/update-notifier/package-data-downloads/partial/comic32.exe' couldn't 
be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading 
http://downloads.sourceforge.net/corefonts/courie32.exe
Get:1 http://downloads.sourceforge.net/corefonts/courie32.exe [646 kB]
Fetched 646 kB in 2s (273 kB/s) 
   
W: Can't drop privileges for downloading as file 
'/var/lib/update-notifier/package-data-downloads/partial/courie32.exe' couldn't 
be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading 
http://downloads.sourceforge.net/corefonts/georgi32.exe
Get:1 http://downloads.sourceforge.net/corefonts/georgi32.exe [392 kB]
Fetched 392 kB in 1s (233 kB/s) 
  
W: Can't drop privileges for downloading as file 
'/var/lib/update-notifier/package-data-downloads/partial/georgi32.exe' couldn't 
be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading 
http://downloads.sourceforge.net/corefonts/impact32.exe
Get:1 http://downloads.sourceforge.net/corefonts/impact32.exe [173 kB]
Fetched 173 kB in 1s (125 kB/s) 
 
W: Can't drop privileges for downloading as file 
'/var/lib/update-notifier/package-data-downloads/partial/impact32.exe' couldn't 
be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading 
http://downloads.sourceforge.net/corefonts/times32.exe
Get:1 http://downloads.sourceforge.net/corefonts/times32.exe [662 kB]
Fetched 662 kB in 2s (314 kB/s) 
 
W: Can't drop privileges for downloading as file 
'/var/lib/update-notifier/package-data-downloads/partial/times32.exe' couldn't 
be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading 
http://downloads.sourceforge.net/corefonts/trebuc32.exe
Get:1 http://downloads.sourceforge.net/corefonts/trebuc32.exe [357 kB]
Fetched 357 kB in 1s (212 kB/s)