You are Here:
Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.



ALSA config switch for LibreOffice

Author (Read 1610 times)

0 Members and 1 Guest are viewing this topic.

ALSA config switch for LibreOffice
« on: August 23, 2018, 10:35:12 AM »
 

trinidad

  • Gold Level Poster
  • *******
  • 990
    Posts
  • Country: us
  • Reputation: 178
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
I'm script automating several items to use LibreOffice Calc from the terminal, successfully, but with one caveat. I get the ALSA library error when using the LL system sounds. I like the system sounds to be used, but I need a script for turning it off or on when Calc is started from the terminal. Either will work. A sample of the script is below. If I completely turn off system sounds it runs without errors. I want the syetm sounds to keep working. It would be nice to change the ALSA permissions for LibreOffice somehow.

#!/bin/bash
wget -q -P /home/user/test/temp/ "https://www.someapi.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=5min&apikey=...................&datatype=csv"
libreoffice --calc /home/user/test/temp/* .csv

Update: I am getting a 3617 error for Alsa which essentially points to an incomplete installation. I'm guessing LO Calc is only partially installed.
TC
Last Edit: August 24, 2018, 09:19:04 AM by trinidad
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 


Re: ALSA config switch for LibreOffice
« Reply #1 on: August 24, 2018, 05:19:40 PM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Country: fi
  • Reputation: 66
  • Linux Lite Member

  • Linux Lite: 4.0 64bit

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
Try switching from ALSA (it is old and soon-to-be-deprecated, I think) to OSS or Pulseaudio.

Code: [Select]
sudo lsmod | grep oss
Code: [Select]
snd_pcm_oss            49152  0
snd_seq_oss            45056  0
snd_mixer_oss          28672  1 snd_pcm_oss
snd_pcm                90112  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_hda_core
snd_seq_midi_event     16384  1 snd_seq_oss
snd_seq                65536  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device         16384  2 snd_seq,snd_seq_oss
snd                    81920  23 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_seq_oss,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm_oss,snd_pcm,snd_mixer_oss
Last Edit: August 24, 2018, 05:22:13 PM by kpanic
 

Re: ALSA config switch for LibreOffice
« Reply #2 on: August 25, 2018, 10:28:14 AM »
 

trinidad

  • Gold Level Poster
  • *******
  • 990
    Posts
  • Country: us
  • Reputation: 178
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
Thanks @kpanic , but I am already aware of that, I believe this an XFCE specific DE configuration issue. There is no issue when starting Calc normally from the XFCE GUI. The system sounds all work. I am saying that for some reason starting Calc from the terminal causes it to attempt to use LOs old default ALSA queries, as if it seems to have no access (permission) to the existing XFCE system sound configurations in that environment, i/e it builds a GUI but not from a normal GUI startup for LO thus losing access to the system sound configurations. I'm sure it is the way the mod is starting/not starting that is the problem. If I am correct in that assumption the resolution could scripted for temporary exceptions, which is what I hope to do.

Perhaps something beginning: --unaccept={UNO string}  if indeed the sound connection is sent in such a fashion.

TC
Last Edit: August 25, 2018, 10:59:11 AM by trinidad
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 


Tags:
 


Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.