One further observation: I'm noticing that some USB sticks will not
properly 'Eject' on those releases that present the problem; whether I
select the 'Eject' or 'Unmount' option on the menu of such a device,
does not make a difference, in that the device does get unmounted, but
the icon will remain visible (in the 'unmounted' state).

On those releases that do properly shut down, 'Eject' on such a device
will not only unmount the device, but will also remove its icon from
display.

One device that shows such errant behaviour, is my 'Alcor Micro Corp.
Flash Drive', of which I attach the 'lsusb' details (file
'lsusb_flash.txt').

** Attachment added: "lsusb_flash.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1618001/+attachment/4731163/+files/lsusb_flash.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1618001

Title:
  My computer reboots instead of shutting down

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  See also: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579542

  When I try to shutdown my computer, it seems as though it is trying to
  power off, but it immediately reboots instead.

  I can circumvent the problem by unbinding the EHCI drivers right
  before power off. I created a systemd service to do this
  automatically. First, I created a script, '/usr/local/sbin/unbind-
  ehci-drivers' that the service will execute:

  -----</usr/local/sbin/unbind-ehci-drivers>-----
  #!/bin/sh

  DRIVER_DIRECTORY='/sys/bus/pci/drivers/ehci-pci'

  cd "${DRIVER_DIRECTORY}"
  find -mindepth 1 -maxdepth 1 -name '*:*:*.*' -type l -printf '%f\0' | xargs 
-I '{}' --null echo '{}' > unbind
  -----<srevird-iche-dnibnu/nibs/lacol/rsu/>-----

  Next, the '/etc/systemd/system/unbind-ehci-drivers.service' systemd
  service file:

  -----</etc/systemd/system/unbind-ehci-drivers.service>-----
  [Unit]
  Description=Unbind EHCI drivers upon system shutdown
  DefaultDependencies=no
  Before=halt.target

  [Service]
  Type=oneshot
  ExecStart=/usr/local/sbin/unbind-ehci-drivers

  [Install]
  WantedBy=shutdown.target
  -----<ecivres.srevird-iche-dnibnu/metsys/dmetsys/cte/>-----

  With these files in place, the following command will enable the service:
  root@localhost# systemctl enable unbind-ehci-drivers

  Shutdown works now.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-34-generic 4.4.0-34.53
  ProcVersionSignature: Ubuntu 4.4.0-34.53-generic 4.4.15
  Uname: Linux 4.4.0-34-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  luvr       2872 F.... pulseaudio
   /dev/snd/controlC1:  luvr       2872 F.... pulseaudio
  CurrentDesktop: XFCE
  Date: Mon Aug 29 14:04:15 2016
  HibernationDevice: RESUME=UUID=d7daa6c6-cf48-4498-8abf-144837e1a26b
  InstallationDate: Installed on 2016-08-09 (19 days ago)
  InstallationMedia: Xubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 
(20160719)
  IwConfig:
   enp2s0    no wireless extensions.
   
   lo        no wireless extensions.
  MachineType: Gigabyte Technology Co., Ltd. GA-MA78G-DS3H
  ProcFB: 0 radeondrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-34-generic 
root=UUID=4b189e9a-d377-49c2-a527-2fc432a51f4f ro quiet splash vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-34-generic N/A
   linux-backports-modules-4.4.0-34-generic  N/A
   linux-firmware                            1.157.3
  RfKill:
   
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/03/2008
  dmi.bios.vendor: Award Software International, Inc.
  dmi.bios.version: F2
  dmi.board.name: GA-MA78G-DS3H
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: x.x
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.modalias: 
dmi:bvnAwardSoftwareInternational,Inc.:bvrF2:bd04/03/2008:svnGigabyteTechnologyCo.,Ltd.:pnGA-MA78G-DS3H:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-MA78G-DS3H:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
  dmi.product.name: GA-MA78G-DS3H
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.

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

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

Reply via email to