GNU/Linux >> Linux の 問題 >  >> Ubuntu

Ubuntuはウェイク後にSDカードを読みませんか?

SDカードをノートブックに接続し、ホームパーティションとして使用しています。コンピュータの電源を入れても、ホームフォルダとサブディレクトリに問題なくアクセスできますが、コンピュータを一時停止して再開すると、システムはSDカードを読み取りません。そのため、フリーズする可能性があり、すべてを再び機能させるためにマシンを再起動する必要があります。

役立つ情報は次のとおりです。

  • MacBook Air 2016
  • macOSSierraとUbuntu17.04デュアルブート
  • (16.10でも同じ問題が発生しました)

さらに詳しい情報:

$ sudo LC_MESSAGES=POSIX lshw -c storage
*-usb                     
   description: Mass storage device
   product: Card Reader
   vendor: Apple
   physical id: 3
   bus info: [email protected]:3
   logical name: scsi1
   version: 8.20
   serial: 000000000820
   capabilities: usb-3.00 scsi emulated scsi-host
   configuration: driver=usb-storage maxpower=896mA speed=5000Mbit/s

$ lsusb -vd 05ac:8406 is:
    Bus 002 Device 002: ID 05ac:8406 Apple, Inc. 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x05ac Apple, Inc.
  idProduct          0x8406 
  bcdDevice            8.20
  iManufacturer           3 
  iProduct                4 
  iSerial                 5 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           44
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              224mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               4
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               4

また、主な違いは、lsblkを一時停止する前に 私のsdb1を表示します デバイス(/homeとしてマウントされたSDカードです )。ウェイクアップ後lsblk コマンドでSDカードが表示されず、/homeのファイルにアクセスできません フォルダ。また、SDカードを再接続できません。認識されません。

  • syslog –最新の停止は45263行の「5月9日22:56:01」から発生します。

    興味深い部分は次のように見えます:

    May  9 22:56:25 MacBookAir kernel: [ 5883.035573] PM: Finishing wakeup.
    May  9 22:56:25 MacBookAir kernel: [ 5883.035575] Restarting tasks ... 
    May  9 22:56:25 MacBookAir kernel: [ 5883.035795] usb 2-3: USB disconnect, device number 2
    [...snip...]
    May  9 22:56:26 MacBookAir kernel: [ 5884.869838] usb usb2-port3: cannot disable (err = -32)
    May  9 22:56:26 MacBookAir kernel: [ 5884.869942] xhci_hcd 0000:00:14.0: Cannot set link state.
    May  9 22:56:26 MacBookAir kernel: [ 5884.869969] usb usb2-port3: cannot disable (err = -32)
    

承認された回答:

一部のUSBHDDには、使用しない期間が経過すると強制的にスリープ状態にするファームウェアが搭載されています。多分これもあなたの問題です。

関連:matplotlibの適切なデフォルトのバックエンド?

Automounterはデバイスをウェイクアップできます(https://help.ubuntu.com/community/Autofs)。

これがお役に立てば幸いです。


Ubuntu
  1. Ubuntuデスクトップをインストールした後に行うべき10のこと

  2. Ubuntu 18.04画面のロックと空白/一時停止/スリープ後にウェイクしませんか?

  3. Ubuntu 14.04にアップグレードした後のマウスラグ?

  1. Ubuntu16.04のアップグレード後にSDカードリーダーが機能しない問題を修正

  2. Ubuntu 16.04一時停止後にWi-Fiがありませんか?

  3. 有線インターネットはUbuntu12.04では機能しませんか?

  1. Ubuntu18.04および19.10をインストールした後に行うこと

  2. スリープから再開した後、Bluetoothが機能しない、Ubuntu 18.04 Lts?

  3. Ubuntuはカーネルアップデート後に起動しませんか?