Jump to content

shizimi

Members
  • Content Count

    11
  • Joined

  • Last visited

Posts posted by shizimi


  1. I was bothered by a large amount of logs like this appearing in syslog, and it stopped when I stopped dmprovider.service.
    What kind of service is this?

     

    Jan 30 08:50:01 nv504 bash[6087]: Unhandled exception. System.IO.IOException: Invalid argument
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.Enumeration.FileSystemEnumerator`1.FindNextEntry(Byte* entryBufferPtr, Int32 bufferLength)
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext()
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName)
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName)
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName)
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName)
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName)
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName)
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.FileSystemWatcher.RunningInstance..ctor(FileSystemWatcher watcher, SafeFileHandle inotifyHandle, String directoryPath, Boolean includeSubdirectories, NotifyFilters notifyFilters, CancellationToken cancellationToken)
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.FileSystemWatcher.StartRaisingEvents()
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
    Jan 30 08:50:01 nv504 bash[6087]:    at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
    Jan 30 08:50:01 nv504 bash[6087]:    at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.TryEnableFileSystemWatcher()
    Jan 30 08:50:01 nv504 bash[6087]:    at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(String filter)
    Jan 30 08:50:01 nv504 bash[6087]:    at Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(String filter)
    Jan 30 08:50:01 nv504 bash[6087]:    at Microsoft.Extensions.Configuration.FileConfigurationProvider.<.ctor>b__1_0()
    Jan 30 08:50:01 nv504 bash[6087]:    at Microsoft.Extensions.Primitives.ChangeToken.ChangeTokenRegistration`1..ctor(Func`1 changeTokenProducer, Action`1 changeTokenConsumer, TState state)
    Jan 30 08:50:01 nv504 bash[6087]:    at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)
    Jan 30 08:50:01 nv504 bash[6087]:    at Microsoft.Extensions.Configuration.FileConfigurationProvider..ctor(FileConfigurationSource source)
    Jan 30 08:50:01 nv504 bash[6087]:    at Microsoft.Extensions.Configuration.Json.JsonConfigurationSource.Build(IConfigurationBuilder builder)
    Jan 30 08:50:01 nv504 bash[6087]:    at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
    Jan 30 08:50:01 nv504 bash[6087]:    at Microsoft.Extensions.Hosting.HostBuilder.BuildAppConfiguration()
    Jan 30 08:50:01 nv504 bash[6087]:    at Microsoft.Extensions.Hosting.HostBuilder.Build()
    Jan 30 08:50:01 nv504 bash[6087]:    at DMClientFeatureProviderServer.Program.Main(String[] args)
    Jan 30 08:50:01 nv504 systemd[1]: dmprovider.service: Main process exited, code=killed, status=6/ABRT
    Jan 30 08:50:01 nv504 systemd[1]: dmprovider.service: Failed with result 'signal'.


  2. thanks replay.

    $ sudo ethtool -s eth0 wol g
    $ sudo nmcli connection modify eth0 802-3-ethernet.wake-on-lan magic
    $ sudo nmcli connection up eth0

    These three commands enabled wol and shutdown.
    I ran the following command from another linux, but it doesn't start.


    $ sudo etherwake <mac address>
    $ wakeonlan <mac address>


    Am I missing something?


  3. I'd like to use an overlay file system like the one implemented in raspi-config on my raspberry pi, but it doesn't work.
    I referred to this site, but the boot partition is not large enough to create an initramfs image.

    https://yagrebu.net/unix/rpi-overlay.md

    /dev/mmcblk0p7  4.9M  348K  4.3M   8% /boot
    Is there a better way?

     

    Hardware:Tinker board R2.0

    Tinker_Board-Debian-Buster-v3.0.11


  4. The 29th pin is set to 1 in the gpio readall command.
    3.3V was measured with a voltmeter between GND and pin.
    I'm not sure why, but inserting add_event_detect solved it.
    why?

    import ASUS.GPIO as GPIO
      
    GPIO.setmode(GPIO.BOARD)
    GPIO.setup(29, GPIO.IN)
    
    GPIO.add_event_detect(29, GPIO.BOTH)
    
    print(GPIO.input(29)) # <- 1

     


  5. I am programming with reference to the sample.
    How can I see the 0,1 of the GPIO?
    The 29th pin shows 3.3V when I look at it with a tester.
    It will be 0 when printed.

    import ASUS.GPIO as GPIO
      
    GPIO.setmode(GPIO.BOARD)
    GPIO.setup(29, GPIO.IN)
    
    print(GPIO.input(29))

     

×
×
  • Create New...