nvidia – trouble sizing my 2nd display properly

im using Ubuntu20.04 on my dell precision 5510, i7 6820HQ,Nvidia Quadro M1000M. this PC has the 4k Touchscreen (not sure if that matters).

I dual boot between windows 10 and Ubuntu. when using windows the extra 24″ acer monitor i use works like a charm, so i dont believe it is a hardware issue. i use a HDMI to connect.

but for some reason when i use Ubuntu i can not manage to get the extra display to fit right.

my built in display setting are 3840×2160 (16:9) scaling 200%

my extra monitor is 1920×1080 (16:9), and ive tried every scaling option i have (100%-200%). ive tinkered with the available options for a while to no avail.

the issue im having is the 2nd display everything is far too big. the dock is zoomed in so far that i have to scroll to get to my favorites on the bottom of it( my dock is on the left side of my screen). i cant move any windows to my 2nd screen because they will be too large and zoomed in to the point of being unusable.

thanks for any help in advance.

wireless – Trying to install wifi adapter driver on kali as it is not working properly on my kali virtual box

I am trying to install driver for Realtek 8812BU so that it functions properly on my virtualbox, because whenever I try to connect it to my kali machine on vbox it just stops functioning basically as soon as i plug it in, but works fine on my host. MY WIRELESS Adapter is an AIGITAL 1200M Realtek USB 3.0 802.11ac.

I followed all these commands:

sudo apt update
sudo apt -y install dkms git bc
git clone https://github.com/fastoe/RTL8812BU.git
cd RTL8812BU
VER=$(sed -n ‘s/PACKAGE_VERSION=”(.*)”/1/p’ dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu
sudo reboot

When I add the dkms it is fine and says it is added..
but after that
it shows this:

Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
make -j4 KERNELRELEASE=5.10.0-kali3-amd64 KVER=5.10.0-kali3-amd64 src=/usr/src/rtl88x2bu-5.6.1….(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.10.0-kali3-amd64 (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information.

I dont know what to do or how to fix this stupid problem with my WiFi adapter.
If someone could please save me, i would really appreciate it.

ejabberd – How start ejabberdctl from bash script properly?

I need to register many thousands of users in ejabberd from csv file. For this, I wrote a simple script.

[ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }
while read username domain pass p1 p2 p3 p4
    echo "ejabberdctl register $username $domain $pass"
    ejabberdctl register $username $domain $pass
done < users.csv

But in the end, the answer is: Error: cannot_register If I just run the line copied from the output, everything is ok. The user is created normally.

display – External monitor does not wake up properly

I’m running Ubuntu 20.04 with Xfce using lightdm, and I have a very annoying issue. I have an old-ish Dell external monitor (slim CRT I think, it’s way heavier than an LCD but only a little thicker) connected to my laptop (Dell XPS 13) via a DVI->HDMI cable + HDMI->DisplayPort over USB-C adaptor (laptop only has USB-C ports).

Whenever I have to turn on/wake up the external monitor, either when starting up the computer or after going to sleep, it turns on and displays correctly for a few seconds, and then the backlight turns off completely (but the display is still on and connected). I can “fix” this issue by alternating re-applying the xrandr modeline and restarting the monitor using its power button, over and over again until it stays on. When I reapply the modeline or restart the monitor each time, it does the same thing as when initially turning it on: works normally for a few seconds and then goes dark. The amount of times I have to repeat these steps to get it to stay on varies a lot; sometimes it’s the second or third time, sometimes I’m sitting there for 15 minutes trying to get it to work. Also, the amount of time it stays on before going dark each time is somewhat variable: anywhere from ~1-10 seconds. Once it stays on for more than a few seconds, the monitor works without a hitch until the next time it has to be woken up.

I’ve Googled around and found some similar questions, but they were either unanswered or the provided answers didn’t work. I can’t see anything unusual in dmesg; here’s the output from each time the monitor is power cycled (it has a bunch of USB ports and a webcam & mic):

Feb 20 09:36:16 shiny-box kernel: ( 2981.689594) usb 1-1.1: new high-speed USB device number 60 using xhci_hcd
Feb 20 09:36:16 shiny-box kernel: ( 2981.837767) usb 1-1.1: New USB device found, idVendor=0424, idProduct=2512, bcdDevice= 0.00
Feb 20 09:36:16 shiny-box kernel: ( 2981.837772) usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Feb 20 09:36:16 shiny-box kernel: ( 2981.838901) hub 1-1.1:1.0: USB hub found
Feb 20 09:36:16 shiny-box kernel: ( 2981.838961) hub 1-1.1:1.0: 2 ports detected
Feb 20 09:36:16 shiny-box kernel: ( 2982.125602) usb 1-1.1.2: new high-speed USB device number 61 using xhci_hcd
Feb 20 09:36:16 shiny-box kernel: ( 2982.226070) usb 1-1.1.2: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= 0.00
Feb 20 09:36:16 shiny-box kernel: ( 2982.226076) usb 1-1.1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Feb 20 09:36:16 shiny-box kernel: ( 2982.227453) hub 1-1.1.2:1.0: USB hub found
Feb 20 09:36:16 shiny-box kernel: ( 2982.227504) hub 1-1.1.2:1.0: 4 ports detected
Feb 20 09:36:16 shiny-box kernel: ( 2982.457620) usb 1-1.1.1: new high-speed USB device number 62 using xhci_hcd
Feb 20 09:36:16 shiny-box kernel: ( 2982.563745) usb 1-1.1.1: New USB device found, idVendor=05a9, idProduct=2641, bcdDevice= 1.00
Feb 20 09:36:16 shiny-box kernel: ( 2982.563751) usb 1-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Feb 20 09:36:16 shiny-box kernel: ( 2982.563755) usb 1-1.1.1: Product: Monitor Integrated Webcam
Feb 20 09:36:16 shiny-box kernel: ( 2982.563758) usb 1-1.1.1: Manufacturer: OmniVision Technologies, Inc.-S2640-
Feb 20 09:36:16 shiny-box kernel: ( 2982.566151) uvcvideo: Found UVC 1.00 device Monitor Integrated Webcam (05a9:2641)
Feb 20 09:36:16 shiny-box kernel: ( 2982.570343) input: Monitor Integrated Webcam: Moni as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0/input/input52
Feb 20 09:36:17 shiny-box kernel: ( 2983.049320) usb 1-1.1.1: Warning! Unlikely big volume range (=445), cval->res is probably wrong.
Feb 20 09:36:17 shiny-box kernel: ( 2983.049328) usb 1-1.1.1: (3) FU (Mic Capture Volume) ch = 1, val = -32768/9984/96
Feb 20 09:36:18 shiny-box kernel: ( 2984.043057) retire_capture_urb: 53 callbacks suppressed

And here’s the relevant xrandr config (scaling is because the primary laptop display is 4K):

DP-1 connected 3360x2100+3840+0 (normal left inverted right x axis y axis) 433mm x 270mm
   1680x1050     59.95*+

I’ve connected the monitor to another laptop (running Lubuntu) via direct HDMI and I couldn’t reproduce the issue. I should also emphasize that the OS isn’t Xubuntu; it’s base Ubuntu with the xubuntu-desktop package installed over GNOME (not sure how that differs; I know that random GNOME components still occasionally pop up and try to do things, and then usually crash). I’ve disabled xscreensaver, and xfce4-screensaver, and display power management, none of which fixed the issue. What should I try next?

magento2 – Credit memo “Return to Stock” not working properly, Configurable Product

Here is my setup:
Magento 2.4.1

Stores->Configuration->Sales->Payment Methods->Braintree (sandbox)->Payment Action = “Intent Sale” (same as “Authorize and Capture”)

Stores->Configuration->Catalog->Inventory->Stock Options->”Decrease Stock When Order is Placed” = Yes

Stores->Configuration->Catalog->Inventory->Product Stock Options->”Automatically Return Credit Memo Item to Stock” = No

Since all Payment Action is “Auth and Capture”, the Orders are automatically Invoiced and Order Status is: “Processing”

  1. Customer purchases a quantity of a Product Variation (a child product of the configurable product), in this case the remaining stock.

  2. I issue a Credit Memo to Refund (either before Shipping or after Shipping, it doesn’t matter), open the Invoice and click on “Credit Memo” at the top of the window, select “Return to Stock” for all line items.
    Credit Memo screenshot

The Quantity and Salable Quantity for each Simple Product Variation is NOT getting updated, they both show 0.
Product Quantities after Credit Memo screenshot

However, if I manually update product Quantity and Stock Status (to In Stock) for each Simple Product Variation – the Quantity is updated BUT the Salable Quantity/Default Stock now includes the Credited Stock so that the Quantity and Salable Quantity are way out of sync.
Manually updated quantities screenshot

Stock status is now all messed up – Salable Quantity / Default Stock is wrong!

It seems like neither the Inventory Reservation table or the product Stock Quantity are being updated properly when an order is returned to stock.

This seems like a serious bug…?


WordPress post page not working properly

Your first screenshot is the block editor. The new editor introduced in WordPress 5.0. It is the default editor, so yes, it is what you “should” get when creating a post.

The second screenshot shows the classic editor, which is often still used for custom post types. If you want to use this editor for Posts (and Pages) you will need to install the Classic Editor plugin.

nodes – How to properly program AJAX links?

I have a custom module that uses AJAX. Everything works fine the way it is. I’m just wondering if it’s the proper way to do it in Drupal. I’m new to Drupal 8 and 9 programming

This is a line from my code

$link ='<a href="/nojs/my-link/1" class="use-ajax btn btn-default">Test AJAX</a>';

Is this ok to do or should I be building my link? If so, why and how?


I currently build non-ajax links like

  $url = Url::fromRoute('entity.node.canonical', array('node' => $record->nid));
  $title_link = Link::fromTextAndUrl($record->title, $url);
  $title_link =$title_link->toRenderable();

data transfer – Does anyone know how to properly download the Winehq for Kou Kou Gurashi? I have a Mac

Stack Exchange Network

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Are the any computer malware or spyware that need a system reboot so that they can function properly?

Are there any malware, or spyware that needs a forced system reboot to work correctly? Because whenever a major security update or release for Windows comes out, or if I zero out my disks and install a totally fresh copy of Windows, there is always a power cut where I live. To me, it seems something on my system needs a reboot. Is this all my imagination or could there be something going on?

hugin – How to get panorama using few photos warped properly?

When I take a few rectilinear landscape images and stitch them using Hugin into a cylindrical projection, I get straight segments with sharp bends at the overlap:

(source: phrogz.net)

Notice the top and bottom of the windshield, and the double-yellow line seen out the windshield.

In contrast, when I take many heavily-overlapping portrait shots, I get nice smooth results:

(source: phrogz.net)

Given the sparse landscape input, is there a way with Hugin—or any other stitching software—to get it to warp the original images consistently to get output like the latter?

Background motivation: I’m about to be producing video from within a vehicle similar to what you see above, and I’d like to use as few cameras as possible. The test shots above were done with an iPhone (rectilinear ~60° HFoV) while the real video will be shot with a GoPro (mild fisheye ~120° HFoV) so perhaps the result won’t be as bad as I fear.