Ubuntu on Laptop external monitor not working properly
434
I found out, that on my system two X display managers where installed: gdm
and lightdm
. The default one was lightdm
. After setting the one to gdm
I can now use both monitors without any problem!
To change the default simply run sudo dpkg-reconfigure lightdm
.
I hope this helps if someone has the same problem!
Related videos on Youtube
Author by
Okezie Frank Obiedere
Updated on September 18, 2022Comments
-
Okezie Frank Obiedere over 1 year
How does one loop through sub arrays of a parent array but iterate over one index per sub array.
I know the solution I want involves at least iterating over a 2D array but I currently know how to print all elements of sub arrays in a parent array
For example say I have
const array = [[1, 2, 3], ['a', 'b', 'c'], ['@', '#', '%']];
How do I get
const result = [[1, 'a', '@'], [2, 'b', '#'], [3, 'c', '%'];
?-
T Tse almost 5 yearsThis operation is called Convolution, and to search for the right answer you should search for "javascript zip array", which would bring you to this question.
-
adiga almost 5 years
array[0].map((_, i) => array.map(row => row[i]))
-
Okezie Frank Obiedere almost 5 yearsWow! thanks, sorry for asking a duplicate question, I did not know there was an actual word for what I was describing ie transposing sub arrays in an array. I think I have enough clues and answers to play with and understand. Thanks again everyone
-
-
sprabhakaran over 8 years
-
adiga almost 5 yearsThis only works for square matrix (2D array with same number of rows and columns). It won't work for
[[1, 2, 3], ['a', 'b', 'c']]
-
Alen.Toma almost 5 yearsWell is it not what he needs? he marked it as an answer so.